Zcms:for
From GruppoZenit
Revision as of 18:37, 29 October 2013 by 192.168.167.20 (Talk)
zcms:for tag can iterate the contents specified in the body of the tag. Its attributes are the following:
Attribute Definition start The starting point of the loop end The ending point of the loop var The variable to which the current index is stored
Below an example on how to use the "for" tag to create a <p> from 1 to 10:
<zcms:for start="1" end="10" var="chk" > <p><zcms:use name="chk"/></p> </zcms:for>