Table of Contents

<vte:for>

<vte:for> tag is used to execute a number of iterations specified by attributes or number of item in array.

Attributes

from [array] - The array you are looping through

key [string] - The name of the variable that is the current key

start [integer] - The number to start from

step [integer] - Step increment, default 1

loop [integer] - The number of iterations

Required attributes are key, start and loop or from and key for array loop.

Example

<vte:for from="{article_list}" key="latest_key" step="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
    <vte:foreach item="article" from="{article_list}" start="{latest_key}" loop="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
        <vte:include file="{VIVVO_TEMPLATE_DIR}summary/default.tpl" />
    </vte:foreach>
</vte:for>
 
devdoc/vte/for.txt · Last modified: 2008/11/06 11:33 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