Alternator Viewtool documentation for the dotCMS Content Management System

The Alternator Viewtool is an Apache Velocity utility class for easily alternating over values in a list.

Toolbox.xml Configuration

The following example shows how the Alternator Viewtool is mapped in the toolbox.xml file:

    <tool>
       <key>alternator</key>
       <scope>application</scope>
       <class>org.apache.velocity.tools.generic.AlternatorTool</class>
    </tool>

References