Showing posts with label Quick Launch. Show all posts
Showing posts with label Quick Launch. Show all posts

Friday, May 4, 2012

Quick launch shows sites and page regardless of navigation settings

To resolve this issue, please make sure data source for quick launch navigation is surround by these tags:

<SharePoint:DelegateControl....>
  <Template_Controls>
     //Quick launch site map data source
  </Template_Controls>
</SharePoint:DelegateContol>

See the sample code below:

<SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">
    <Template_Controls>
       <asp:SiteMapDataSource
       SiteMapProvider="SPNavigationProvider"
       ShowStartingNode="False"
       id="QuickLaunchSiteMap"
       StartingNodeUrl="sid:1025"
       runat="server"/>
    </Template_Controls>
 </SharePoint:DelegateControl>