Friday, September 21, 2012

Breadcrumb in SharePoint 2010


SharePoint breadcrumb is a very nice feature of SharePoint 2010. If you use the Breadcrumb by following this link then you will have some problem like. At the end it will add Pages ->Default Page.

If you do not want that type means you want only Home -> Site1 ->Site1.1 ->Site1.1.1 without your page tag then follow below SiteMapPath.

<asp:SiteMapPath SiteMapProvider="CurrentNavSiteMapProviderNoEncode" id="ContentMap"  SkipLinkText="-"  RenderCurrentNodeAsLink="true" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/>

The solution is to change the SiteMapProvider from SPContentMapProvider to  CurrentNavSiteMapProviderNoEncode.

You can hide the ‘Pages’ library in SharePoint breadcrumb by this method.

No comments:

Post a Comment