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

Peter Klein peter at umloud.dk
Wed Sep 28 19:59:14 CEST 2005


Hi Ries. You just need to pass to vars to your function, like 
($content,$conf).
$conf then contains an array of every property you add to the .userFunc

ie.
userFunc.myProperty = blabl
userFunc.anotherProperty.field = title

You can then in your PHP userfunc, retrieve the values like this:
  $myvar = $conf["myProperty"];

Or if you want stdWrap on your properties, you retrieve the values like 
this:
  $myvar = $this->cObj->stdWrap($conf["anotherProperty"], 
$conf["anotherProperty."]);

---
Peter Klein/Umloud Untd.

"Ries van Twisk" <typo3 at rvt.dds.nl> wrote in message 
news:mailman.698.1127908040.11589.typo3-english at lists.netfielders.de...

> 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,


>
>>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





More information about the TYPO3-english mailing list