Mill (Iterator) Viewtool

Last Updated: Aug 20, 2021
documentation for the dotCMS Content Management System
Deprecated

The $mill (iterator) Velocity Viewtool is a convenience tool to use with #foreach loops. It wraps a list allowing you to specify a condition to terminate the loop, and to reuse the same list in different loops.

Toolbox.xml Configuration

The following shows how the mill tool is mapped in the toolbox.xml file:

    <tool>
        <key>mill</key>
        <scope>request</scope>
        <class>org.apache.velocity.tools.generic.IteratorTool</class>
    </tool>

On this page

×

We Dig Feedback

Selected excerpt:

×