[TYPO3-german] [Fluid]Variable zusammbauen {array.{key}}

Alexander Walther jumpingpixel at googlemail.com
Fri Sep 16 17:38:20 CEST 2011


Hi,

wenn ich {data.imagecaption.{key}} hinschrieb wird das auch so
ausgegeben, also nicht interpretiert.

Grüße
Alex

2011/9/16 Stefan Frömken <firma at sfroemken.de>:
> Am 16.09.2011 16:38, schrieb Alexander Walther:
>>
>> Hallo,
>>
>> ich bin gerade dabei mir eine kleines Contentelement zu schreiben. Das
>> ganze Mit Extbase und Fluid. Dabei habe ich gerade das Problem das ich
>> in einem Template auf eine Array per Key zugreifen will, der Key aber
>> in einer Variable steht.
>>
>> Hier eine Beispiel.
>>
>> <f:for each="{data.image}" as="image" key="key">
>> <li>
>> <f:image src="uploads/pics/{image}" width="590" height="200" alt="My
>> Image"/>
>> {data.imagecaption.0}
>> </li>
>> </f:for>
>>
>> Die "0" an der Imagecaption soll durch den Wert aus Key ersetzt
>> werden. Hat jemand ein Tip wie man das machen kann.
>>
>> Grüße
>> Alex
>
> Schon probiert? Verschachteltungen sind bis aus eine Ausnahme eigentlich
> kein Problem:
> {data.imagecaption.{key}}
>
> Stefan
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>


More information about the TYPO3-german mailing list