[TYPO3-templavoila] FCE and UserFunc

Dmitry Dulepov typo3 at accio.lv
Sat Jun 17 12:17:01 CEST 2006


Hi!

K. Zugberg wrote:
>                    <TypoScript>
> <![CDATA[
> 10 = TEXT
> 10.current = 1
> 20 = USER
> 20.userFunc = user_functions->createwhatever
> 20.param < 10
> ]]>
> </TypoScript>
> 
> The problem is: the value inserted in the text field is not transmitted 
> to my function. When I debug the value I receive is "TEXT". Can anybody 
> help me here? I would be glad to receive a hint which helps me find the 
> solution.

It is is a typical trap with typoscript: you think it will give you 
processed value of 10 but you get string assigned to 10 (see "10=TEXT").

In other words, your code is equivalent to:

10 = TEXT
10.current = 1
20 = USER
20.userFunc = user_functions->createwhatever
20.param = TEXT

So you get what you "wanted": TEXT :)

Your code will not work outside of TV either.

Dmitry.
-- 
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-project-templavoila mailing list