[TYPO3-english] Passing dynamic data to FLUIDTEMPLATE

Sören Kracker s.kracker at kopfstand-mail.de
Fri Mar 30 16:14:38 CEST 2012


You have to pass the variables as arguments to the partial:
<f:render partial="Xyc/Properties" arguments="{myvar:myvalue}" />

See: http://wiki.typo3.org/Fluid#f:render

Am 30.03.2012 15:39, schrieb Victor Livakovsky:
>> > Tried to make it this way:
>> > variables {
>> >    ccId = TEXT
>> >    ccId.value = 272
>> > }
>> > <f:cObject typoscriptObjectPath="lib.single_content" data="{ccId}" />
>> > but this code doesn't work.
>>
>> So, as I understand, it is not possible to pass TS objects to fluid?
>
> Well, after two days of fighting I found, what was the reason: 
> variables are NOT visible in partials. If I put variable into layout 
> or into template, it is outputted, but not in partial!
> Don't know, is it a bug or a feature?
> TYPO3 4.6.4
>
> I wonder, if it is mentioned in some documentation about Fluid?..
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list