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

Ries van Twisk typo3 at rvt.dds.nl
Wed Sep 28 14:47:06 CEST 2005


Hey peter,

>HI Ries. Not quite sure what it is you want to do, but I wrote a small 
>UserFunc a while ago, to allow me to set the aTagParams with stdWrap values. 
>You use it like this:
>
>    typolink.userFunc = user_userFunc->addAttributes
>    typolink.userFunc.aTagParams.dataWrap = alt="{field:title}" 
>title="{field:title}"
>  
>
I am using a little bit of PHP right now aswell, see the post on my own 
mail...
However, I need to check how you pass parameters,
My function is currently not really general...
Thanks for the suggestion/

cheers,
Ries

>The extra "aTagParams" are then added to the normal "aTagParams"
>
>The PHP userFunc:
>-- cut --
><?
>class user_userFunc{
> function addAttributes($content,$conf) {
>  $aTagParams = $this->cObj->stdWrap($conf['aTagParams'], 
>$conf['aTagParams.']);
>  $content["aTagParams"].= ' '.$aTagParams;
>  $content['TAG'] = '<A 
>HREF="'.$content["url"].'"'.$content["targetParams"].$content["aTagParams"].'>';
>  return $content['TAG'];
> }
>}
>?>
>-- cut --
>
>---
>Peter Klein/Umloud Untd
>
>"Ries van Twisk" <typo3 at rvt.dds.nl> wrote in message 
>news:mailman.545.1127851622.11589.typo3-english at lists.netfielders.de...
>  
>
>>Hey List,
>>
>>maby some typo guru can solve it....
>>
>>I have this typoscript whoch is part if a large piece of TS that get's the 
>>most 10 updated page in part of my tree:
>>
>>   renderObj = COA
>>   renderObj {
>>     10 = TEXT
>>     10.field = header
>>     10.typolink.parameter.field=pid
>>     10.typolink.parameter.stdWrap.dataWrap=#uid
>>     10.wrap = <div class="style1 style4 style6">|
>>    20 = TEXT
>>     20.field = tstamp
>>     20.strftime = %d-%b-'%y %H:%M
>>     20.wrap =  | </div>
>>   }
>>
>>
>>But how can I make sure that I add a title for the typolink that show the 
>>tstamp file like I add the tstamp file after the link.
>>
>>I have tried several permutations (not shown here) but just cannot get 
>>what I want.
>>
>>ATagParams doesn't seem to be stdWrap so I can't do anything there...
>>
>>Ries
>>
>>
>>    
>>
>
>
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>  
>




More information about the TYPO3-english mailing list