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 would like to have breadcrumb that does not display document library name in breadcrumb trail.For example if i use SPContentMapProvider it will create breadcrumb like Home-->Subsite--> docLib-->DocsetTitle so in order to remove docLib i have tried another sitemapProvider called CurrentNavSiteMapProviderNoEncode which remove docLib but dont see docsetTitle either. i would like to see Home-->subsite--->DocsetTitle.

Please advise

Thanks ROnak

share|improve this question

You could just do the following in the masterpage or on the page where you would not want to show the document library from the breadcrumb:

[script language="javascript" type="text/javascript"]
var breadCrumbs = document.getElementById
if (breadCrumbs != null)
    if (breadCrumbs.childNodes.length >= 3)
        if (breadCrumbs.childNodes[2].innerHTML.indexOf('Pages') > 0)
            breadCrumbs.childNodes[1].innerHTML = "";
            breadCrumbs.childNodes[2].innerHTML = "";
//Change '"[","]" to "<",">" in script tag.

This was taken from here:

share|improve this answer
Thanks for your reply i can not hardcode pages or some doclib name.i am looking for c# solution. – Ronak Aug 24 '12 at 12:45
up vote 0 down vote accepted

Thanks i have used this link as starting point of creating custom control for breadcrumb and its working fine.

Thanks waldek for great information on your blog.


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.