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

Stephan Petzl spetzl at gmx.at
Mon Feb 7 23:29:06 CET 2011


hallo!

is there some view helper which just evaluates some expression?
i would like to make an ordered list (with a number next to each item). 
Using the index of the for-loop is not enough, since it starts with 0 
instead of 1.

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?
-- 
Best Regards
Stephan Petzl
http://www.ajado.com


More information about the TYPO3-project-typo3v4mvc mailing list