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

Sebastian Kurfürst sebastian at typo3.org
Wed Sep 15 09:47:07 CEST 2010


Hi,

> {namespace hz=Tx_xx_ViewHelpers}
> <hz:for start="1" until="{card.layout.numPages}" as="num">
>     <f:form.textarea id="texts-field-{num}" name="texts[{num}]" value="{orderItem.texts -> hz:property(propertyName:'{num}')}" rows="5" cols="40" />		        	
In this case, you can write hz:property(propertyName:num) -- instead of
propertyName:'{num}'

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list