[TYPO3-mvc] nested for each - index to refrence new array?

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Apr 7 22:31:45 CEST 2010


<f:for each="{items}" as="item" key="index">
	<f:for each="{item.subitems}" as="subitem" key="subindex">
		{subitem.property}
	</f:for>
</f:for>

Like this?

Thomas

Am 07.04.2010 20:21, schrieb ralph:
> hi, i try to nest for each loops.
> <f:for each="{items}" as="item" key="iindex">
> <f:for each="{subitems}" as="subitem" key="subindex">foo</f:for>
> </f:for>
> i wanna assign something like <f:for each="{subitems}{iindex}" as i have
> subitems0, subitems1 and so on in my template. is there a way to
> concatenate array names like this?


More information about the TYPO3-project-typo3v4mvc mailing list