+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Menu in worldwide site

Menu in worldwide site

2 posts, 0 answered
  1. Slava
    Slava avatar
    5 posts
    Registered:
    07 Mar 2008
    27 Mar 2008
    Link to this post
    Hello,

    I want to realize worldwide site.

    I have an external value that contained, for examle, in cookies.
    Using it I want to build site menu, employing as root element some "group page" instead of "All Pages".

    How could I realize it better?

    Do I need to realize my own sitemap provider?

    Thank you!
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    01 Apr 2008
    Link to this post
    Hello Slava,

    I am not sure I fully understand what you want to achieve. Could you please describe in details? What kind of information will be stored in the cookie and how do you plan to use this value? What is the purpose of changing "All Pages" to "group page"?

    If you just want to modify the Title of the root element, you could implement this in the Page_Load method of the ~/Sitefinity/UserControls/Navigation/SiteMenu.ascx control that comes with Sitefinity:

    .ascx
    <asp:SiteMapDataSource ID="SitemapDataSource1" runat="server" ShowStartingNode="true" /> 
    <radM:RadMenu ID="RadMenu1" runat="server" DataSourceID="SitemapDataSource1" OnItemDataBound="RadMenu1_ItemDataBound"
    </radM:RadMenu> 

    Please note that the ShowStartingNode property of the SiteMapDataSource control is set to true.

    .cs
    protected void Page_Load(object sender, EventArgs e) 
        { 
            SiteMap.RootNode.Title = "group page"
        } 

    Do let us know how it goes.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered