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

Alexander Dick alex at dick.at
Wed Sep 15 09:00:09 CEST 2010


Thanks, works great!

{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" />		        	
</hz:for>

cheers
Alex

On Wed, 15 Sep 2010 08:42:41 +0200, Sebastian Kurf�rst <sebastian at typo3.org> wrote:
> Hey,
> 
> {someOtherObject -> f:property(propertyName:'{item.uid}.title')}
> 
> But I think that needing this ViewHelper is generally a bad smell...
> 
> Greets,
> Sebastian
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list