{"id":284,"date":"2012-06-27T22:26:56","date_gmt":"2012-06-28T05:26:56","guid":{"rendered":"https:\/\/mmman.itgroove.net\/?p=284"},"modified":"2023-02-24T21:47:02","modified_gmt":"2023-02-24T21:47:02","slug":"hide-the-pages-library-in-the-sharepoint-breadcrumb","status":"publish","type":"post","link":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/","title":{"rendered":"Hide the &#8220;Pages&#8221; Library in the SharePoint Breadcrumb"},"content":{"rendered":"<p>The SharePoint breadcrumb is a nice feature to have on your pages. However, it doesn\u2019t appear tidy in certain scenarios. For the case below, we\u2019re going to get rid of the &quot;Pages&quot; library link in the breadcrumb of a publishing site.<\/p>\n<p>Normal breadcrumb:<\/p>\n<p><strong>My Portal -&gt; Pages -&gt; Test Page1<\/strong><\/p>\n<p>Updated breadcrumb:<\/p>\n<p><strong>My Portal -&gt; Test Page1<\/strong><\/p>\n<p>To do this, simply change the breadcrumb source provider to <font color=\"#9b00d3\">CurrentNavSiteMapProviderNoEncode<\/font>.&#160; You have to change this in SiteMapPath tag on the SiteMapProvider attribute.<\/p>\n<p>Old:<\/p>\n<p><font size=\"2\" face=\"Courier New\">&lt;asp:SiteMapPath SiteMapProvider=&quot;<font style=\"background-color: #ffffff\"><\/font><\/font><font size=\"2\" face=\"Courier New\"><font color=\"#ff0000\">SPContentMapProvider<\/font><\/font><font size=\"2\" face=\"Courier New\"><font style=\"background-color: #ffffff\"><\/font>&quot; id=&quot;ContentMap&quot; SkipLinkText=&quot;&quot; NodeStyle-CssClass=&quot;ms-sitemapdirectional&quot; runat=&quot;server&quot;\/&gt;<\/font><\/p>\n<p>New:<\/p>\n<p><font size=\"2\" face=\"Courier New\">&lt;asp:SiteMapPath SiteMapProvider=&quot;<font color=\"#9b00d3\">CurrentNavSiteMapProviderNoEncode<\/font>&quot; id=&quot;ContentMap&quot; SkipLinkText=&quot;&quot; NodeStyle-CssClass=&quot;ms-sitemapdirectional&quot; runat=&quot;server&quot;\/&gt;<\/font><\/p>\n<p>One gotcha is that when you use CurrentNavSiteMapProviderNoEncode, if you want your page names to show up in the breadcrumb, (instead of being truncated off \u2013 for instance, in the case above, your breadcrumb would simply be &quot;My Portal&quot; instead of &quot;My Portal \u2013&gt; Test Page1&quot;), you have to make sure that &quot;Show Pages&quot; is true for the current navigation &#8211; even if you don\u2019t want to display pages on the left navigation you have to enable it (assuming you want it to appear in the breadcrumb). However, there is a saving grace, if you enable this setting and you don\u2019t want the pages in the left navigation, you can simply go and hide your pages one by one via the navigation settings.<\/p>\n<p>Thanks to Salman\u2019s Blogs for the original article.&#160; <a title=\"http:\/\/blogs.salmanghani.info\/?p=592\" href=\"http:\/\/blogs.salmanghani.info\/?p=592\">http:\/\/blogs.salmanghani.info\/?p=592<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SharePoint breadcrumb is a nice feature to have on your pages. However, it doesn\u2019t appear tidy in certain scenarios. For the case below, we\u2019re going to get rid of the &quot;Pages&quot; library link in the breadcrumb of a publishing site. Normal breadcrumb: My Portal -&gt; Pages -&gt; Test Page1 Updated breadcrumb: My Portal -&gt; &hellip; <a href=\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\"><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hide the &quot;Pages&quot; Library in the SharePoint Breadcrumb - Archive<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide the &quot;Pages&quot; Library in the SharePoint Breadcrumb - Archive\" \/>\n<meta property=\"og:description\" content=\"The SharePoint breadcrumb is a nice feature to have on your pages. However, it doesn\u2019t appear tidy in certain scenarios. For the case below, we\u2019re going to get rid of the &quot;Pages&quot; library link in the breadcrumb of a publishing site. Normal breadcrumb: My Portal -&gt; Pages -&gt; Test Page1 Updated breadcrumb: My Portal -&gt; &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\" \/>\n<meta property=\"og:site_name\" content=\"Archive\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-28T05:26:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T21:47:02+00:00\" \/>\n<meta name=\"author\" content=\"Colin Phillips (Alumni)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Phillips (Alumni)\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\",\"url\":\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\",\"name\":\"Hide the \\\"Pages\\\" Library in the SharePoint Breadcrumb - Archive\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#website\"},\"datePublished\":\"2012-06-28T05:26:56+00:00\",\"dateModified\":\"2023-02-24T21:47:02+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog Archive\",\"item\":\"https:\/\/regroove.ca\/archive\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hide the &#8220;Pages&#8221; Library in the SharePoint Breadcrumb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/archive\/#website\",\"url\":\"https:\/\/regroove.ca\/archive\/\",\"name\":\"Archive\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/archive\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\",\"name\":\"Colin Phillips (Alumni)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"caption\":\"Colin Phillips (Alumni)\"},\"url\":\"https:\/\/regroove.ca\/archive\/author\/cphillips\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hide the \"Pages\" Library in the SharePoint Breadcrumb - Archive","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/","og_locale":"en_US","og_type":"article","og_title":"Hide the \"Pages\" Library in the SharePoint Breadcrumb - Archive","og_description":"The SharePoint breadcrumb is a nice feature to have on your pages. However, it doesn\u2019t appear tidy in certain scenarios. For the case below, we\u2019re going to get rid of the &quot;Pages&quot; library link in the breadcrumb of a publishing site. Normal breadcrumb: My Portal -&gt; Pages -&gt; Test Page1 Updated breadcrumb: My Portal -&gt; &hellip;","og_url":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/","og_site_name":"Archive","article_published_time":"2012-06-28T05:26:56+00:00","article_modified_time":"2023-02-24T21:47:02+00:00","author":"Colin Phillips (Alumni)","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Colin Phillips (Alumni)","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/","url":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/","name":"Hide the \"Pages\" Library in the SharePoint Breadcrumb - Archive","isPartOf":{"@id":"https:\/\/regroove.ca\/archive\/#website"},"datePublished":"2012-06-28T05:26:56+00:00","dateModified":"2023-02-24T21:47:02+00:00","author":{"@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/archive\/2012\/06\/27\/hide-the-pages-library-in-the-sharepoint-breadcrumb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Archive","item":"https:\/\/regroove.ca\/archive\/"},{"@type":"ListItem","position":2,"name":"Hide the &#8220;Pages&#8221; Library in the SharePoint Breadcrumb"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/archive\/#website","url":"https:\/\/regroove.ca\/archive\/","name":"Archive","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/archive\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b","name":"Colin Phillips (Alumni)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","caption":"Colin Phillips (Alumni)"},"url":"https:\/\/regroove.ca\/archive\/author\/cphillips\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/284"}],"collection":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":1988,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/284\/revisions\/1988"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}