locked
Breadcrumbs Not Working in Custom Page Layout RRS feed

  • Question

  • I have used the following in my SharePoint 2013 custom page layout (based on an Article page) to provide a breadcrumb.  The problem is that it is only displaying the page title.  I would like it to display something like: "Home > My Sub Site > My Page".

    <!--MS:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
    <!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">-->
    	<!--MS:<SharePoint:SPTitleBreadcrumb runat="server" WelcomePageUsesWebTitle="false" DefaultParentLevelsDisplayed="3" ParentLevelsDisplayedInFolder="3" RenderCurrentNodeAsLink="true" SiteMapProvider="CurrentNavSiteMapProviderNoEncode" CentralAdminSiteMapProvider="SPXmlAdminContentMapProvider">-->
    	<!--ME:</SharePoint:SPTitleBreadcrumb>-->
    <!--ME:</asp:ContentPlaceHolder>-->
    <!--ME:</SharePoint:AjaxDelta>-->
    

    I got this from a blog post on the new Sharepoint 2013 design manager process.

    Thanks for any help,

    Richard

    Wednesday, November 21, 2012 12:56 AM

Answers

  • Turns out the following snipit did the trick to give me the output I wanted:

     <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    

    • Marked as answer by Richard MM Tuesday, November 27, 2012 2:57 AM
    Tuesday, November 27, 2012 2:57 AM

All replies

  • Turns out the following snipit did the trick to give me the output I wanted:

     <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    

    • Marked as answer by Richard MM Tuesday, November 27, 2012 2:57 AM
    Tuesday, November 27, 2012 2:57 AM
  • Thank you. This was driving me crazy.

    I don't suppose you've also managed to overcome the problem with the global nav always displaying the root node?

    <asp:SiteMapDataSource ShowStartingNode="False" SiteMapProvider="SPNavigationProvider" ID="topSiteMap" runat="server">


    If at first you don't succeed, ask an MVP.

    Thursday, February 7, 2013 11:33 PM
  • Hi There,

    Sure,...

    replace:

    <SharePoint:DelegateControl runat="server"
    ControlId="TopNavigationDataSource"> 
      <Template_Controls> 
       <asp:SiteMapDataSource 
         ShowStartingNode="False" 
         SiteMapProvider="SPNavigationProvider" 
         id="topSiteMap" 
         runat="server" 
         StartingNodeUrl="sid:1002"/> 
      </Template_Controls> 
     </SharePoint:DelegateControl>

      with:

    <asp:SiteMapDataSource 
         ShowStartingNode="False" 
         SiteMapProvider="CombinedNavSiteMapProvider" 
         id="topSiteMap"   runat="server"/>

    The issue is in the SiteMapProvider... The CombinedNaveSiteMapProvider will do the trick... 
    Wednesday, February 27, 2013 2:36 PM