Difference between revisions of "Zcms:for"

From GruppoZenit
Jump to: navigation, search
Line 29: Line 29:
* [[Tag library]]
* [[Tag library]]
* [[Content form tags]]
* [[Zcms:store and zcms:use#zcms:use|zcms:use]]
* [[Zcms:store and zcms:use#zcms:use|zcms:use]]

Revision as of 18:34, 29 October 2013

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 the option from 1900 to 2050:

<zcms:for start="1900" end="2050" var="chk" >
   <p><zcms:use name="chk"/></p>

See also

Personal tools