[Typo3] typolink and adding the tstamp in the title tag...

Ries van Twisk typo3 at rvt.dds.nl
Wed Sep 28 17:02:56 CEST 2005


JoH wrote:

>>I am currently doing that....
>>strange that that it's not possible with TS as far as I can see...
>>    
>>
>
>Well - it is ;-)
>But you have to make sure that XHTML cleaning is enabled to fill in an
>additional space for this (kind of ugly) hack:
>
>typolink.parameter can have up to 3 parts.
>1. the page to link to
>2. the target
>3. the class
>
>If you write it like this
>
>typolink.parameter = 123    _self    linkclass"title="whatever"
>
>it will result in something like
>
><a href="index.php?id=123" target ="_self"
>class="linkclass"title="whatever">Linktext</a>
>
>XHTML cleaning gives back the additional space between class and title that
>you can't use in the setup itself, since everything after a third space
>would be ignored.
>
>Since typolink.parameter has got stdWrap properties you can do the
>following:
>
>temp.content = TEXT
>temp.content {
>  field = title
>  typolink.parameter.cObject = COA
>  typolink.parameter.cObject {
>    10 = TEXT
>    10.dataWrap = {field:pid} _self linkclass"
>    20 = TEXT
>    20.field = tstamp
>    20.strftime = %d-%b-'%y %H:%M
>    20.wrap = title="|"
>  }
>  wrap = <div class="style1 style4 style6">|</div>
>}
>
>Tested and working.
>
>Joey
>
>  
>
Nice workaround Joey!!!

cheers,
Ries



More information about the TYPO3-english mailing list