[TYPO3-templavoila] using userFunc inside DS

Martin Rebetez martin at rebetez.com
Sun Jul 5 23:15:08 CEST 2009


Hello,

 > However, it may need
> to be done a little differently if your user func needs data from fields 
> inside the DS itself.

yes, I need the uid of the FCE in my function.
I was planing something like :

temp.info = USER
  temp.info {
    userFunc =user_participantFunc->main
    value=register:tx_templavoila_pi1.parentRec.uid
  }

Can you sugest a way to do it ?

Regards,
Martin



> I have done a similar thing with retrieving the header of an FCE and 
> rendering it on the front end with TV.
> 
> Ron Hall
> Busy Noggin, Inc.
> 
> 
> On Jul 5, 2009, at 10:37 AM, Martin Rebetez wrote:
> 
>> Hi,
>>
>> I'm trying to use a userFunc inside a DS for a FCE.
>>
>> I tried following code:
>>
>>     <field_inscrit type="array">
>>         <tx_templavoila type="array">
>>             <title>Inscrits</title>
>>             <description></description>
>>             <sample_data type="array">
>>             <numIndex index="0"></numIndex>
>>             </sample_data>
>>             <eType>none</eType>
>>             <TypoScript><![CDATA[
>>
>> includeLibs.participantFunc = fileadmin/script/participantFunc.inc
>> temp.info = USER
>> temp.info {
>>   userFunc =user_participantFunc->main
>>   value=atest
>>   color=#11FAAA
>> }
>>
>> 20 = TEXT
>> 20.value < temp.info
>>
>>             ]]></TypoScript>
>>             <tags>div:inner</tags>
>>         </tx_templavoila>
>>     </field_inscrit>
>>
>> The displayed code is then 'USER' and not my expected value from my
>> function...
>>
>> Can you help me to understand my mistake ?
>>
>> Thanks in advance
>>
>> MR
>> _______________________________________________
>> 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