Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
How do I indicate a separator in an XML and a sitemap file? Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, You can set the menu item's text to "-" (for example, by using title="-" in your site map file), then handle the menu's ItemDataBound event and put in something like this:
Code: C#
protected void Menu1_ItemDataBound(
object sender, EO.Web.NavigationItemEventArgs e)
{
//Change the item to a separator as long as its text is "-"
if (e.MenuItem.Text.Html == "-")
e.MenuItem.IsSeparator = true;
}
Hope this helps. Thanks!
|