Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working on a theme for Sharepoint 2010. While working on the header area, I ran into a very annoying problem regarding the breadcrumb navigation: It looks good everywhere, except for sites that are stored under /_layouts/ or /Sites/ (it's called 'Seiten' in German). I made screenshots of the correct and the wrong styling of the breadcrumb navigation:

http://i.imgur.com/XAafM.png

Here is the code I use to get the breadcrumb:

<asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server"> 

    <asp:SiteMapPath 
        SiteMapProvider="SPContentMapProvider"
        id="ContentMap"
        runat="server"
        PathSeparator="&nbsp;&raquo;&nbsp;"
        RenderCurrentNodeAsLink="True"
        SkinID="2"
        EnableTheming="False"
        EnableViewState="False"
        ShowToolTips="False">
    </asp:SiteMapPath>

</asp:ContentPlaceHolder>

I really have no idea why this is happening. Maybe there is a different way to display a breadcrumb navigation?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Breadcrumbs in SharePoint are weird animals :) Have you already tried to "remove" the ContentPlaceHolder "PlaceHolderTitleBreadcrumb". Actually, don't remove it - but place it in a hidden panel somewhere in your masterpage. So that only the SiteMapPath control is left behind.

My guess would be that another SiteMapPath control is injected from within those application pages,... in that placeholder.

share|improve this answer
    
Woah! I would have never thought of that. It doesn't make sense. I don't even try to understand why I have to hide the ContentPlaceHolder. But it works! It works perfectly. Thanks a lot! –  dulnan Nov 11 '11 at 8:04
add comment

Your Answer

 
discard

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.