[TYPO3-mvc] adding / multiplying / math operation view helper
Stephan Petzl
spetzl at gmx.at
Tue Feb 8 11:34:34 CET 2011
Am 08.02.11 01:18, schrieb Franz Koch:
> 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>
>
wow- that is really cool!
was a bit confused, that i really need a viewhelper for that!
i think it would really be awesome to have a place where people could
post examples for viewhelpers. like on php.net a simple comment
functionality would improve the learning curve for newbies (like me :) a
lot. but i know, thats not the right place to discuss such features,
somewhere i read something about a viewhelper-repo...
--
Best Regards
Stephan Petzl
http://www.ajado.com
More information about the TYPO3-project-typo3v4mvc
mailing list