[TYPO3-mvc] fetch element from array based on object.property

Martin Kutschker masi-no at spam-typo3.org
Thu Apr 15 12:49:30 CEST 2010


Bastian Waidelich schrieb:
> Martin Kutschker wrote:
> 
> Hi Masi,
> 
>> Does FLUID support assignments within the template?
> 
> TIAAVHFT (There is already a ViewHelper for this). It's called "alias":

The name makes sense. But you'll have to use the docs to figure it out ;)

>> $temp = {object.property}
>> {list.temp}
> 
> <f:alias map="{temp: object.property}">
> ...
> </f:alias>
> 
> but it won't help in this case as "temp" in "{list.temp}" won't be
> replaced..

Does this work?

{list.{temp}}

Masi


More information about the TYPO3-project-typo3v4mvc mailing list