OpenWGA 7.6 - WebTML reference

WebTML tags » foreach

<tml:foreach item ="item | variable">

Purpose:

Specifies on type="itemvalue" the name of an item whose values is to iterate over

Description:

Specifying this attribute makes usage of the type attribute optional. The tag will automatically use type="itemvalue" when the type is omitted.

The item can have any iterable value as contents. This may be a List, a CollectionResult or its descendants or something else that is iterable in TMLScript.

If the elements on the iterable are content documents (either in the form of a TMLContext or a WGAPI WGContent object) then the contents of the tag is executed in the context of the currently iterated content document.