[TYPO3] assign return-value of a userfunc via TS to a attribute
Markus Thaler
most.wanted at gmx.at
Thu Sep 11 10:40:53 CEST 2008
> This willo not work because TS is not executable language. The copy
> operator "<" just copies whatever you have on the right part of it.
> After copying your TS becomes:
>
>
> includeLibs.id = fileadmin/scripts/id.php
> temp.id = USER
> temp.id.userFunc = user_id->main
> temp.gallery < plugin.tx_rgsmoothgallery_pi1
> temp.gallery {
> mode = RECORDS
> startingpointrecords = USER
> startingpointrecords.userFunc = user_id->main
> }
>
> Now when SmoothGallery tries to read "startingpointrecords", it expects
> a number there. But actually it finds a word "USER" there. See the problem?
thank you for your answer.
would it be bossible to make the value in temp.id (after it is filled
with the return-value of the userfunc) a plain number? or can i
assigning the value (as a plain number) of temp.id into another object
before assigning it to "startingpointrecords" isn`t it possible to
manipulate/transfom the value of temp.id into a plain number?
More information about the TYPO3-english
mailing list