LSU Health New Orleans

Job Opportunities | Contact | Donate

Friday, April 18, 2014   8:55 PM    |   65°F
 
 

Editing Menu XML

When using the Content Management System (CMS), the menu is generated by the CMS. If you can reference CMS generated xml, do so by referencing the xml file with the XmlFileName attribute in the menu control rather than generating a new xml file which creates more maintenance later. When you are unable to use the CMS for any of your pages, the menu must be generated manually. Following is a menu example with annotated help comments.  Please note that the menus are cached for five minutes so if you make changes to the xml file and then load a web page using it, you won't be able to see updated content in the xml for five minutes.

Template2011 XML Whole Menu

<?xml version="1.0"?>
<MAINMENU TYPE="SIDEMENU">
 <MAINLINK HEADER="TRUE">  <-- For gold header rows in the menu, use HEADER="TRUE" in the XML
Template2011 XML Menu HeaderRow

  <URL>#</URL>
  <DESCRIPTION>MAINLINK HEADER</DESCRIPTION>
 </MAINLINK>
 <MAINLINK>
  <URL>#</URL>  <-- URL for the menu item
  <DESCRIPTION>MAINLINK</DESCRIPTION>  <-- The text for the Menu Item is between "DESCRIPTION" 
 </MAINLINK>
 <MAINLINK>
  <URL EXTERNAL="TRUE">#</URL>  <-- EXTERNAL="TRUE" sets this link to open in new tab for those pages that are external pages
  <DESCRIPTION>MAINLINK</DESCRIPTION>
 </MAINLINK>
 <MAINLINK>
  <URL>#</URL>
  <DESCRIPTION>MAINLINK</DESCRIPTION>
  <DROPDOWN>
   <DROPDOWNLINK URL="#" TITLE="DropDownLink" />  <-- Drop down link
Template2011 XML Menu DropDownLink

   <DROPDOWNLINK URL="#" TITLE="DropDownLinkExternal" EXTERNAL="TRUE" />  <-- EXTERNAL="TRUE" sets this link to open in new tab for those pages that are external pages
   <DROPDOWNLINK URL="#" TITLE="DropDownLinkWithSubmenu">
    <SUBMENU>
     <SUBLINK URL="#" TITLE="SubSubMenuItem" />  <-- Link for the subsubmenu
Template2011 XML Menu SubSubMenuItem

<SUBLINK URL="#" TITLE="SubSubMenuItemExternal" EXTERNAL="TRUE" />  <-- EXTERNAL="TRUE" sets this link to open in new tab for those pages that are external pages
    </SUBMENU>
   </DROPDOWNLINK>
   <DROPDOWNLINK URL="#" TITLE="ExpandableDropDownLinkWithSubmenu" TYPE="EXPANDABLE"> <-- TYPE="EXPANDABLE" sets this sub-submenu to be accordion style
Template2011 XML Menu SubSubMenu Expandable ClosedTemplate2011 XML Menu SubSubMenu Expandable Open

    <SUBMENU>
     <SUBLINK URL="#" TITLE="DropdownSubmenuLink" />
     <SUBLINK URL="#" TITLE="DropdownSubmenuExternalLink" EXTERNAL="TRUE" />
    </SUBMENU>
   </DROPDOWNLINK>
  </DROPDOWN>
 </MAINLINK>
</MAINMENU>