[TYPO3-mvc] Nesting Fluid-Tags

Jochen Rau jochen.rau at typoplanet.de
Wed May 5 14:26:29 CEST 2010


Hi Bernhard.

On 05.05.10 13:42, Bernhard Kraft wrote:
> Hello !
>
> I have a question regarding fluid templates. If I have an input box like
> the following:
>
> <f:form.textbox property="captcha" value="Ziffern und Buchstaben" />
>
> I would like to replace the string "Ziffern und Buchstaben" by an
> LL-Label. Usually one can achieve this by using the <f:translate /> tag.
> But nesting both tags like in this example:
>
> <f:form.textbox property="captcha" value="<f:translate
> key="LLL:EXT:voegele_card/locallang.xml:current_balance_eur" />" />
>
> does not work. So can I somehow place an LLL label into an
> argument/property of a fluid tag?

there is an inline notation for View Helpers. And you don't have to 
point to LLL:EXT:voegele_card/locallang.xml. Extbase already does the 
job. Have a look at:

<f:form.textbox property="captcha" value="{f:translate(key: 
'current_balance_eur')}" />

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list