OpenWGA 7.6 - WebTML reference

WebTML tags » foreach

<tml:foreach type="loop" >


Iterates a given number of times


Specify the times to iterate via attribute count. The attribute currentvalue can be used to determine the name of a variable which will hold the number of the current iteration.


A loop that iterates over the number of pages that a paged navigator offers. For each page it generates a link to directly reach this page.

<tml:navigator id="nav" pagesize="5">



<tml:foreach type="loop" count="{ taginfo('nav', 'pages') }" currentvalue="page" divider="&nbsp">

   <a href="<tml:url type="selectpage" sourcetag="hotpages" page="{page}"/>"> <tml:item name="page"/> </a>