[Typo3] backlink plus text before it

Christopher bedlamhotel at gmail.com
Mon Sep 26 20:51:35 CEST 2005


Hi,

On 26/09/05, Marlies C <mc at mcuniverse.com> wrote:
> I am using this code for my back link to the main section:
>
> #Back Link to Parent Item
>   temp.backlink =  TEXT
>   temp.backlink.data = leveltitle : -2
>   temp.backlink.insertData = 1
>   temp.backlink.typolink.parameter.data=leveluid : -2
>
> and it produced << section name
>
> Now I would like to have it appear this way:
>
> return to << section name
>
> How can I add that text so that it appears correctly?
>
> Thanks
>

The problem is that if you add it to the wrap of the TEXT object the
entire text gets wrapped instead of just the 'section name' part,
right? If so, the easy way would be to just make the whole thing a
COA:

#Back Link to Parent Item
temp.backlink = COA
temp.backlink {
  stdWrap.noTrimWrap = |Return to << ||

  10 =  TEXT
  10.data = leveltitle : -2
  10.insertData = 1
  10.typolink.parameter.data=leveluid : -2
}


-Christopher



More information about the TYPO3-english mailing list