menu:iterate

Iterates through all menuitems in a menu

Syntax
<menu:iterate
   currentSectionID="..."?
   depth="..."?
   id="..."
   menu="..."
   startID="..."?>
   <menu:sectionView.../>   <menu:urlView.../>   <menu:spaceView.../>   <menu:articleView.../>
</menu:iterate>
Attributes
id, mandatory, no runtime expressions

The current object when iterating the menu

menu, mandatory

The menu to iterate

currentSectionID

The id of the current section.

depth

Defines how many levels to iterate

startID

Specifies which element in the menutree we should start iterating from.

Scripting variable (id)

A scripting variable will be defined using the value of the id attribute as its name. The variable is of type java.lang.Object.