More in this section

Forums / Developing with Sitefinity / ShowInNavigation, RadPanelBar and SiteMapDataSource

ShowInNavigation, RadPanelBar and SiteMapDataSource

3 posts, 0 answered
  1. Andrew
    Andrew avatar
    202 posts
    Registered:
    05 Jun 2009
    18 Oct 2012
    Link to this post
    I use a radPanlBar in my navigation so that i can get a bit more control above and beyond the normal menu. However i now get items displayed i don't want.
    I have set those not to show in navigation, but now i need to somehow to the check in my code. 
    How would i do this?
    Can i somehow check in itemdatabinding and hide the items i don't want?
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    18 Oct 2012 in reply to Andrew
    Link to this post
    Hi Andrew,

    Are you using the Sitefinity SiteMap, or the default one?
    Try to make a UserControl with help of the SitefinitySiteMapDataSource:

    <sfNav:SitefinitySiteMapDataSource ID="sfDatasource" runat="server" SiteMapProvider="SitefinitySiteMap"
        ShowStartingNode="false" StartFromCurrentNode="false" StartingNodeOffset="1" />

    You need this import inside your UserControl (widget):
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.NavigationControls"
        TagPrefix="sfNav" %>

    Regards,
    Daniel
  3. Andrew
    Andrew avatar
    202 posts
    Registered:
    05 Jun 2009
    22 Oct 2012 in reply to Daniel Plomp
    Link to this post
    Thanks, that worked.
3 posts, 0 answered