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

Forums / Designing with Sitefinity / Site Panelbar as main menu with Site Tabstrip as submenu

Site Panelbar as main menu with Site Tabstrip as submenu

4 posts, 0 answered
  1. chris_cf
    chris_cf avatar
    32 posts
    Registered:
    04 Jul 2007
    30 Oct 2008
    Link to this post
    I'd like to know if its possible to only display root level menu items in a Site Panelbar on the left of my page and have submenu items displayed using the Site Tabstrip in the center of my page.
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    30 Oct 2008
    Link to this post
    Hi Chris,

    A possible solution for the SitePanelbar is to implement the required functionality in RadPanelbar1_ItemDataBound method like this:

    ~/Sitefinity/UserControls/Navigation35/SitePanelbar.ascx
    public void RadPanelbar1_ItemDataBound(object sender, RadPanelBarEventArgs e) 
        { 
            if (e.Item.Level > 0) 
            { 
                e.Item.Visible = false
                e.Item.Owner.Items.Clear(); 
            } 
     
            if (this.hideUrlForGroupPages) 
            { 
                CmsSiteMapNode node = e.Item.DataItem as CmsSiteMapNode; 
                if (node != null && node.PageType == CmsPageType.Group) 
                { 
                    e.Item.NavigateUrl = ""
                } 
            } 
        } 

    As for the SiteTabstrip, follow the instructions below:
    1. Click Edit to open property window.
    2. Expand section Navigation and select False for ShowOnlyFirstLevel property.
    3. Expand section Behavior and type 0 for HideLevel field.
    4. Click I'm Done to save the changes

    Do let us know if this helps.

    Kind regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. chris_cf
    chris_cf avatar
    32 posts
    Registered:
    04 Jul 2007
    30 Oct 2008
    Link to this post
    Thanks, this works.

    Will this be configurable in the interface in the future?
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    31 Oct 2008
    Link to this post
    Hello Chris,

    I have logged your suggestion in our ToDo list. We'll consider implementing a property (for example ShowOnlyFirstLevelthat will be configurable through Sitefinity interface.

    Kind regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered