More in this section

Forums / Developing with Sitefinity / 2 main navigation on the site

2 main navigation on the site

2 posts, 0 answered
  1. Jay Mehta
    Jay Mehta avatar
    19 posts
    02 Sep 2009
    03 May 2010
    Link to this post

    I have a requirement of having 2 top navigation on my site. 1st navigation would divide the site into sub sites, and 2nd navigation would be the main navigation of that site. How can I achieve this by setting the properties of Site TabStrip or Site Menu?

    For eg.:
    Main navigation of the site: 
    A    B    C   D   E    (these would be individual sites)

    Each site will have (for eg. A)
    A1   A2    A3   A4   A5   (this would be the top navigation (group of pages) of site A)

    Each group will have Site Panelbar which will show pages under the group (for eg. A1)

    Any help or guidance will be greatly appreciated.

    Thank you,
    Jay Mehta.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    04 May 2010
    Link to this post
    Hello Jay Mehta,

    Thank you for using our services.

    If you are going to use sub-domains the first menu is achievable with the built in navigation controls. You just have to specify for the SiteMenu or other navigation control to bind only the first level of items. If you are not going to use sub-domains and each website will be separate entity you will have to create the main navigation by hand.

    For site navigation - your top navigation - you can use the SiteMenu and tell it from which node to start from, using the StartingNodeUrl property. This way you can set the node under which the sub-domain is and bind its child nodes.

    The same goes for the SitePanelBar. You will have to edit the SitePanelBar.ascx.cs file if you wish to have the StartingNodeUrl property. You can copy the code for this property from the SiteMenu.ascx.cs file.

    For more information on creating sub-domains within a Sitefinity website, please take a look at the following KB article.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered