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

Forums / Bugs & Issues / SitePanelBar displays menu items that should be hidden

SitePanelBar displays menu items that should be hidden

7 posts, 0 answered
  1. Jenna Brenn
    Jenna Brenn avatar
    5 posts
    Registered:
    07 May 2010
    02 Apr 2011
    Link to this post
    I am using the SitePanel Bar to display my site's subnavigation, some of which is nested withen both an SSL and Secure folder in the site's structure.  After logging in, the user should be able to see the menu items withen these folders.

    For example, the site's directory structure looks like this:

    Default.aspx
    SSL (folder)
          Secure(folder)
              My Account
    `        Track my order
              etc.

    When setting up the site in Sitefinity, I categorized both the SSL and Secure folders as Page Groups and selected the "No" option for "Show in Navigation."  This seems to work for the SSL folder, but it seems that no matter what I do, the Secure link always displays in my site panel bar.

    When placing the site panel bar on my "My Account" and "Track My Order" pages, I set the "StartingNodeOffset" to 2, "Show Starting Node" to True, and the "StartFromCurrentNode" to False.

    Can anyone tell me what I am doing wrong, or why, even though I selected for the "secure" link not to be displayed in the menu, it displays anyway?
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    07 Apr 2011
    Link to this post
    Hello Jenna Brenn,

    The best solution here would be to attach the debugger to the databound event, in the PanelBar control. You can debug there and check why the node is visible - perhaps there is a property which is left unset for some reason. 
    On the other hand, if you set Starting Node Offset to 2, it means that the navigation starts from Secure(folder) (Default and SSL are on level 1, and there is hidden [ROOT] node on level 0). You may try to set "Show Starting Node" to False in this case. 

    Greetings,
    Georgi
    the Telerik team

  3. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    18 Feb 2012
    Link to this post
    Has this issue ever been resolved?
    I get the same problem with the PanelBar as well as with a top TabStrip menu.
    This is quite frustrating, because after restarting the application, clearing cache and temporary internet files, the problem persists.
    Also funny, because our site is bi-lingual: the menu in Italian behaves correctly; while the one in English shows items that should be hidden. Permissions for both languages are the same.

  4. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    22 Feb 2012
    Link to this post
    Hi Chanan,

    Unfortunately this hasn't been resolved because we haven't released a newer version after Sitefinity 3.7 SP4. Apologies for the inconvenience.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    22 Feb 2012
    Link to this post
    In other words, the only way to resolve the issue is using a customized sitemap.
    Am I right?
    Or is there a way to edit a stored procedure or two in the database to overcome the fact that "IsAccessibleToUser" does not work?


  6. Jenna Brenn
    Jenna Brenn avatar
    5 posts
    Registered:
    07 May 2010
    25 Feb 2012
    Link to this post
    The exact issue I had was that the panel bar was showing the group pages.  It has been quite a while since I delt with this problem but I believe it was solved by adding am item databound event (OnItemDataBound="RadPanelbar1_ItemDataBound") to the sitepanelbar and calling this function:

     

     

    public void RadPanelbar1_ItemDataBound(object sender, RadPanelBarEventArgs e)

     

    {

     

     

    if (this.hideUrlForGroupPages)

     

    {

     

     

    CmsSiteMapNode node = e.Item.DataItem as CmsSiteMapNode;

     

     

     

    if (node != null && node.PageType == CmsPageType.Group)

     

    {

    e.Item.NavigateUrl =

     

    "";

     

    e.Item.Text =

     

    "";

     

    }

    }

    }

    I hope this helps!

  7. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    02 Mar 2012
    Link to this post
    Well, I'm using this function as well but it is not related to the issue at hand.
    Problem is that in ITALIAN everything works as it should, while the same sitemap in ENGLISH displays pages that should not be visible.
    Permissions are exactly the same (we're talking the same "pages" with the same URL).
    This problem affects the SitePanelBar and the SiteTabStrip.
    Source of the problem is probably to be found in the database...
    A mystery that will remain a mystery, it seems.
Register for webinar
7 posts, 0 answered