SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom breadcrum for my site. It works almost perfectly, the only issue I have is that it is displaying full paths like so:

Home > About Us > Pages > Awards

I would prefer for the breadcrumb to display the following:

Home > About Us > Awards

Is there a way to get rid or ommit the "Pages" from the breadcrumb?

Here is the code I have:

<!--Adding additional custom breadcrumb -->
<div class="BreadCrumbWrap s4-notdlg">
<asp:SiteMapPath runat="server" SiteMapProvider="SPContentMapProvider"   
id="ContentMap"   CssClass="BreadCrumbStyle" PathSeparator="&gt;">
<CurrentNodeStyle CssClass="BreadCurrentNode" />
<PathSeparatorStyle CssClass="BreadPathSeparator" /> 

Any assistance will be greatly appreciated. Thanks in advance!

share|improve this question

migrated from Nov 28 '11 at 18:48

This question came from our site for professional and enthusiast programmers.

This is simple. you should do the below.

Change the SiteMapProvider to CurrentNavSiteMapProviderNoEncode, this will solve the problem. :)

share|improve this answer
Thanks Praveen that dis exactly what I wanted. – user5830 Nov 29 '11 at 9:22

If you remove the "SiteMapProvider" attribute and you should get the following output:

Home > About Us > Awards

    <CurrentNodeStyle CssClass="BreadCurrentNode" />
    <PathSeparatorStyle CssClass="BreadPathSeparator" /> 
share|improve this answer

I do breadcrumbs slightly different. I just have the parent items show (in your case it would show: Home > About Us ). The current item is a title somewhere else on the page.

NodeStyle-CssClass="ms-sitemapdirectional" />
share|improve this answer

I just made an extensive post about this. In that thread is code that you can drop in your master page that will do just what you want. There are examples, too, to show what the different paths will look like.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.