iWebPress iWebPress: User Guide

4.2.3. Simple Lists

A simple list is one where you specify which item you want in the list. Lists are 1-based, which means they start at 1 for the first element. A simple list is best explained by example. For example, if you wanted to represent a list of the top five sections in your web templates you'd write the following:

%sectionName(1)%
%sectionName(2)%
%sectionName(3)%
%sectionName(4)%
%sectionName(5)%

As an example, this would might output the following:

Front Page
World News
Sports
Arts & Entertainment
Health