menu:use

Creates a generic view of the menu, suitable for iteration using the view tag library. This method of iteration does not use the sectionView or similar tags. Rather, the view is iterated over using the core view:iterate tag.

By using this tag along with the <menu:item> tag, it is possible to make the menu context-sensitive. See the documentation for >view:relationships< for more information.

Syntax
<menu:use
   id="..."
   publication="..."?
   publicationId="..."?
   treeName="...">
   <menu:item.../>
</menu:use>
Attributes
id, mandatory, no runtime expressions

Name of the scripting variable to export. The variable will be of type com.escenic.common.util.tree.View. The variable will is suitable for recursion using <view:iterate>.

publicationId

Id of the publication to get the tree, if different from the current publication. If not specified, the request's current publication will be used.

publication

The name of publication to get the tree, if different from the current publication. If not specified, the request's current publication will be used.

treeName, mandatory

Name of the tree. This is the actual name of the menu to use.