[TYPO3] Modern linklist template

Peter Gallagher pgallagher at electricretina.com
Thu Mar 8 23:19:41 CET 2007


Edwin Blokker wrote:
> I still have not figured this out yet. Also, I'm trying to accomplish 
> some other things with the output of the ab_linklist (modern linklist) 
> extension:
> 
> - Change the automatically rendered internal page titles
> - Have the external links point to the real URL's (by default the href 
> is some encrypted URL which looks like an internal link)
> 
> Are there default solutions to these problems, or could anybody point me 
> in the right direction?
> 
> Thanks in advance,
> Edwin.
> 
> 
> Edwin Blokker schreef:
>> Hi,
>>
>> I'm trying to set up a template for the extension Modern Linklist. A 
>> part of the category view in the template looks like this:
>>
>> <!-- ###LINKS### begin -->
>> <div class="tx_ablinklist_catalogView_links">
>> <h2>###CATEGORY_LABEL### ###LL_LINKS###:</h2>
>> <!-- ###LINK### begin -->
>> <div class="tx_ablinklist_catalogView_link">
>> ###LINK_LABEL###
>> <br />
>> ###LINK_DESCRIPTION### (###LINK_REPORT_BROKEN###)
>> <br />
>> </div>
>> <!-- ###LINK### end -->
>>
>> When viewed in the FE all is rendered well, except for the 
>> ###CATEGORY_LABEL### part. That is just rendered as 
>> '###CATEGORY_LABEL###', instead of being replaced with the title of 
>> the active category.
>>
>> Does anybody know what I might be doing wrong / how to solve this?
>>
>> Thanks a lot!
>> Edwin.

The reason that this doesn't work is because the extension code is programed to replace 
that template marker in the links section of the view it is rendering. This means that 
you will have to modify (read hack) the php code for the extension.

Find the tx_ablinklist_pi1.php file in the folder 'typo3conf/ext/ab_linklist/pi1' folder. 
You will need to copy the line of code from line #513 and paste it before or after line 
#720. Basically you are looking to find the line of code where the 'CATEGORY_LABEL' is 
replaced in the template and copying it to where you would like it to replace the template 
marker you have added to the LINKS section of the rendered view.

You should definitely make a copy of this file before you make change in case it stops 
working so you can go back to the original.

Peter.


More information about the TYPO3-english mailing list