<vte:foreach>

<vte:foreach> tag is used to loop through the array.

Required attributes are from and item.

Attributes:

from [array] - The array you are looping through

item [integer] - The name of the variable to assign the current array element

loop [integer] - The number of iterations

start [integer] - The number to start from

step [integer] - Step increment, default 1

key [string] - The name of the variable to hold current index

Children

<vte:else> (optional)

Example

<vte:foreach item="article" from="{article_list}">
    <vte:value select="{article.get_title}" />
</vte:foreach>
 
devdoc/vte/foreach.txt · Last modified: 2008/11/06 11:34 by milana
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki