[TYPO3-mvc] Use index of iteration attribute as array index
Peter Niederlag
typo3-list at niekom.de
Mon Jun 27 09:01:45 CEST 2011
Hello,
Am 26.06.2011 10:36, schrieb Claus Fassing:
> Hello,
>
> I try to use the index of the iteration attribute from ForViewHelper as
> array index.
>
> Such as
>
> <f:for each="{Foo}" as="foo" iteration="it">
> <f:alias map="{index: it.index}">
> <f:image src="{imgSrc.index}" alt="foobar" width="150" />
> <f:debug>{imgSrc.index}</f:debug>
You could give
{imgSrc.{index}} a try as this would be the logic expression to first
substitute index. Your current expression IMO will always look for named
property index of imgSrc.
[...]
Greets,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
More information about the TYPO3-project-typo3v4mvc
mailing list