[TYPO3-templavoila] using userFunc inside DS
Ron Hall
ronslists at busynoggin.com
Sun Jul 5 18:04:17 CEST 2009
Hello Martin,
I believe you can write your temp.info in the main TS template of your
site and then pull it into the DS as a TS object. However, it may need
to be done a little differently if your user func needs data from
fields inside the DS itself.
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