Menu XML tokens

Basic Menu XML Types

Table 17.2. The Menu XML Types

NameDescription
staticA single menu entry with a defined description and destination.
foreachA menu entry which will repeat for each value in the specified passed record structure (hashref in perl). Please see the entry on the menu functions in the programming manual, reference section, for Wacs UI
dividerPuts in a horizontal rule at this point in the menu
headingPuts in a bold heading in the menu. Note that this is allowed to have a link on it if you want that but it will not have substitutions applied.

Sample Menu

Shown below is a very simple sample menu.

Example 17.1. Sample Menu

<?xml version='1.0' standalone='yes'?>
<menu>
 <main>
  <menutitle>Main Menu</menutitle>
  <default>#WACSALLM#</default>
  <entry>
   <type>static</type>
   <title>All Models Index</title>
   <target>#WACSALLM#</target>
  </entry>
  <entry>
   <type>static</type>
   <title>PHP Demo</title>
   <target>#BASEURL#simple/index.php</target>
  </entry>
 </main>
</menu>