Welcome Guest Search | Active Topics | Sign In | Register

Menu XML Separator Options
Jim Nelson
Posted: Wednesday, October 10, 2012 2:54:03 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
How do I indicate a separator in an XML and a sitemap file?
Thanks
eo_support
Posted: Wednesday, October 10, 2012 10:10:16 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.