[TYPO3-mvc] adding / multiplying / math operation view helper

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Feb 8 01:18:54 CET 2011


Hey,

> Something like this would be nice:
> <f:for each="{games}" as="game" key="index">
> <li><span>{index+1}.</span> {gamename}</li>
> </f:for>
>
> any ideas how to achieve this?

like Simon said, use the iteration feature for this:

<f:for each="{games}" as="game" iteration="gamesIterator">
   <li><span>{gamesIterator.cycle}.</span> {game.name}</li>
</f:for>

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list