[TYPO3-mvc] nested for each - index to refrence new array?
ralph
77 at kubai.de
Thu Apr 8 08:17:59 CEST 2010
hi thomas,
subitems is not part of the item. it's an independent array...
On 07.04.2010 22:31, Thomas "Thasmo" Deinhamer wrote:
> <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