[TYPO3-mvc] Fluid - accessing an object property by a dynamic index

Alexander Dick alex at dick.at
Tue Sep 14 16:51:32 CEST 2010


Hey guys, 

I wonder if it is possible to access a template object by a dynamic index:
 
<f:for each="{data}" as="item">
	{someOtherObject[{item.uid}].title}
or
	{someOtherObject.{item.uid}.title}
or
	{someOtherObject.`item.uid`.title}
</f:for>

I've tried a couple different variants but nothing seems to work.

Thanks in advance!

Cheers
Alex




More information about the TYPO3-project-typo3v4mvc mailing list