UI Site Navigation Menu
Configuring the site navigation menu
The site navigation menu is actually two completely separate sitemaps. The file named “web.sitemap” configures the navigation menu for general users, and the file named “web101.sitemap” configures the navigation menu for admin accounts. This setup allows admins to have access to additional pages (i.e., account management page) that general users should not have access to.
Below is a sample of the code for configuring a menu:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
The "Home" group contains all of the menu items
<siteMapNode url="~/Default.aspx" title="Home" description="" >
This is an example of an individual menu item with no group association
<siteMapNode url="~/QuickStartDemo.aspx" title="Quick Start Demo" description=""></siteMapNode>
This is an example of a group menu item with two items contained under the group topic
<siteMapNode url="" title="Sample Pages" description="" >
<siteMapNode url="~/Sample_Read_Write.aspx" title="Sample Read/Write" description="" />
<siteMapNode url="~/Sample_Animation.aspx" title="Sample Animation" description="" />
</siteMapNode>
This is another example of an individual menu item with no group association
<siteMapNode url="EventScheduler.aspx" title="Event Scheduler" description="" ></siteMapNode>
This is another example of an individual menu item with no group association
<siteMapNode url="RecipeMgr.aspx" title="Recipe Manager" description="" ></siteMapNode>
This is an example of a group menu item with three items contained under the group topic
<siteMapNode url="" title="Alarm Data" description="" >
<siteMapNode url="~/AlarmMgrAdmin.aspx" title="Alarm Manager" description="" />
<siteMapNode url="~/AlarmReports.aspx" title="Alarm Reports" description="" />
<siteMapNode url="~/UserLogs.aspx" title="User Logs" description="" />
</siteMapNode>
This is an example of a group menu item with two items contained under the group topic
<siteMapNode url="" title="Data Analysis" description="" >
<siteMapNode url="~/MultiGraph.aspx" title="MultiGraph" description="" />
<siteMapNode url="~/RealTimeGraph.aspx" title="Real Time Graph" description=""/>
</siteMapNode>
This is another example of an individual menu item with no group association
<siteMapNode url="UserAccounts.aspx" title="User Accounts" description="" ></siteMapNode>
</siteMapNode>
</siteMap>
And this is the resulting display with the "Alarm Data" group expanded. Note that the solid arrows denote menu items that can be expanded and the hollow arrows denote items that cannot be expanded.