[TYPO3-templavoila] using userFunc inside DS

Martin Rebetez martin at rebetez.com
Mon Jul 6 15:33:04 CEST 2009


Hi Francois,
Hi Ron,

Thanks for your help.

It work now !

TS inside DS :

20 = TEXT
20.data = register:tx_templavoila_pi1.parentRec.uid
20.preUserFunc = user_participantFunc->main
20.wrap = |  participant(s) inscrit(s)

Function :

<?php
class user_participantFunc {

function main($content,$conf){

$uid = $content;

[.....]

$content = [...];
return $content;

}

}
?>




Ron Hall a écrit :
> Hi Francois,
> 
> Thank you. I cannot try it until a few hours, but it does look like a 
> more direct way (and much easier to code).
> 
> For almost every need there seems to be a way to fulfill it in 
> TypoScript which is why I love it, but also why I always find myself 
> learning. :)
> 
> Ron Hall
> Busy Noggin, Inc,
> 
> 
> On Jul 6, 2009, at 3:14 AM, Francois Suter wrote:
> 
>> Hi,
>>
>> This is drifting a bit away from the original topic, but I still wanted
>> to reply to that.
>>
>>> This is what I use to retireve the header field of an FCE and render it
>>> on the front end. This should be similar to what you can do for your 
>>> need
>>
>> There's actually a more direct way of retrieving the content element's
>> header inside a FCE. There are registers loaded with all fields from the
>> parent content element which can be accessed as:
>>
>> register:tx_templavoila_pi1.parentRec.header
>>
>> unless I have misunderstood what you meant.
>>
>> Cheers
>>
>> -- 
>>
>> Francois Suter
>> Cobweb Development Sarl - http://www.cobweb.ch
>> _______________________________________________
>> TYPO3-project-templavoila mailing list
>> TYPO3-project-templavoila at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila 
>>
>>
> 


More information about the TYPO3-project-templavoila mailing list