ShowInNavigation, RadPanelBar and SiteMapDataSource

Posted by Community Admin on 04-Aug-2018 07:17

ShowInNavigation, RadPanelBar and SiteMapDataSource

All Replies

Posted by Community Admin on 18-Oct-2012 00:00

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?

Posted by Community Admin on 18-Oct-2012 00:00

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

Posted by Community Admin on 22-Oct-2012 00:00

Thanks, that worked.

This thread is closed