[Typo3] typolink and adding the tstamp in the title tag...
Peter Klein
peter at umloud.dk
Tue Sep 27 23:55:17 CEST 2005
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}"
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
>
>
More information about the TYPO3-english
mailing list