The Element Tree
The pane on the left hand side of the editor contains a tree
showing the current structure of the menu
resource.
The tree can be expanded and collapsed as required.
The elements are represented by different icons according to their type. Right-clicking on an element displays a context menu containing a subset of the options displayed in the toolbar.
To insert a new element:
-
Select the element into which you want to insert a new element.
-
Select the Insert tool in the toolbar. A pull-down menu is displayed listing the element types you can insert at this point.
-
Select the element type you want to insert.
A new element of the selected type is added to the tree and automatically selected. Use the attribute editor (see The Attribute Editor) to set the new element's attributes.
The element tree may contain the following element types:
menu
-
The root
menudef
element may contain any number of menu elements, each representing a different menu. section
-
The
section
element represents a menu option associated with one of the publication's sections (and optionally, submenus associated with the section's sub-sections). article
-
The
article
element represents a menu option associated with one of the content items in the publication. link
-
The
link
element represents a link to an external URL. space
-
The
space
element represents a spacer of some kind in a menu. includeMenu
-
The
includeMenu
element can be used to include one menu in another, thus making it possible to re-use menus.