Adding Quick Launch to Page Layout

When we need to add Quick Launch to the page layout we can use following code.

    ID="SiteMapDS"
    runat="server"
    EnableViewState="false"
    SiteMapProvider="CurrentNavigation"
    StartFromCurrentNode="true"
    StartingNodeOffset="0"
    ShowStartingNode="false"
    TrimNonCurrentTypes="Heading"/>
       ID="CurrentNav"
    EncodeTitle="false"
    runat="server"
    EnableViewState="false"
    DataSourceID="SiteMapDS"
    UseSeparateCSS="false"
    UseSimpleRendering="true"
    Orientation="Vertical"
    StaticDisplayLevels="2"
    MaximumDynamicDisplayLevels="0"
    CssClass="s4-ql"
    SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>"/>

Following links will help you to get some samples how to do this.

http://heatherwaterman.com/2014/07/left-navigation-menu-page-layout/
https://social.technet.microsoft.com/Forums/sqlserver/en-US/89061901-8ce7-4bb2-85eb-bb9d58ca90df/hide-pages-from-quick-launch-in-starter-foundation-master-page
http://www.sharepointblues.com/2010/02/08/publishing-navigation-secrets-part-1/
http://www.dummies.com/how-to/content/how-to-configure-site-navigation-in-sharepoint-201.html 

Comments

Popular posts from this blog

How to get SharePoint dll version using JavaScript quickly

SharePoint App Only Registration Key Renewal script