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

Forums / Designing with Sitefinity / How to show only sub pages of a menu item not all pageg trough Site Panel Bar

How to show only sub pages of a menu item not all pageg trough Site Panel Bar

6 posts, 0 answered
  1. sweety
    sweety avatar
    28 posts
    Registered:
    28 Jun 2010
    17 Jul 2010
    Link to this post
    Dear Reader

    I am using Site Panel Bar control and it shows all te menu item but I have to show only sub pages of a particular menu item.

    Suppose there are 3 parent item suppose Home,About us, Services and services having 5 child pages like Services1,Services 2 and Services 3 ,So I want to show only child pages of Service menu Item not all the pages,Please Help me as soon as possible.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jul 2010
    Link to this post
    Hi sweety,

    The SitePanelBar control has a property StartFromCurrentNode that you could set to true.The property is exposed from contained SitemapDataSource Gets or sets a value indicating whether the site map node tree is retrieved using the node that represents the current page.
     true -  if the node tree is retrieved relative to the current page, otherwise, false. The default is false. StartFromCurrentNode property is evaluated during calls to the GetView and the GetHierarchicalView methods to help determine which site map node to use as a starting point to build the node tree. The StartFromCurrentNode and StartingNodeUrl properties are mutually exclusive — if you set the StartingNodeUrl property, ensure that the StartFromCurrentNode property is false.


    Greetings,
    Ivan Dimitrov
    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
  3. mukesh
    mukesh avatar
    25 posts
    Registered:
    21 Aug 2010
    21 Aug 2010
    Link to this post

    hi

    I am using Site mentu control and it shows all  pages links item but I have to show only selected page.

    Suppose there are 15 page in cms ,i want show only 8 selected page in menu bar.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Aug 2010
    Link to this post
    Hello mukesh,

    You can create a custom control using RadPanelBar and bind it to source of Cms pages


    or create a control similar to SiteMenuBuilder. The third option is to hide the RadPanelItem from ItemDataBound event of RadPanelBar item which is declared inside SitePanelBar control behind.

    Sincerely yours,
    Ivan Dimitrov
    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
  5. Daniel
    Daniel avatar
    1 posts
    Registered:
    10 Nov 2010
    19 Nov 2010
    Link to this post
    Hello,

    I am in the same situation where I want to display only child pages of the current page in the Site PanelBar.
    I had set the StartFromCurrentNode property to true and ShowStartingNode property to false. In the Site Panel Bar.

    However the menu in the template has the StartingNodeUrl set to the Home page which is a grouping node.
    In this scenario I  want to show only subpage1 and subpage2 in the Site Panel Bar when I am positioned on page3.
    At the same time I want the breadcrums displaying the Home page node:
    Home>page3>subpage1. At this point the breadcrums work fine with the Site Menu but the Site Panel Bar does not display anything. You have said that the  StartingNodeUrl  and StartFromCurrentNode are mutual exclusive which I assume this is the reason why the SitePanelBar is not displaying. Given this situation how can I display the SitePanelBar?

    +AllPages
    + Home
    page1
    page2
    +page3
    subpage1
    subpage2
    page4
    +page5
    subpage6

    Regards,
    Daniel
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Nov 2010
    Link to this post
    Hi Daniel,

    Please try removing the StartingNodeUrl property of your SitePanelbar and set it to start from the current page and not to display the starting page. This should be enough to set it to show on the child pages of the current page.

    Kind regards,
    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
Register for webinar
6 posts, 0 answered