Tuesday, November 17, 2009

Adding navigation hierarchial nodes to BreadBrumb

Showing links to Sub Folders of Document Library in BreadCrumb

While navigating to folders within Document library, have you ever noticed the name of the folder in BreadCrumb........
By default you will not be seeing folders of a document library in BreadCrumb, you will be able to see only till the name of the Document Library
Unless you customize the BreadCrumb,
so How to customize it?
Follow the below steps to display the Sub Folders of a Document Library in BreadCrumb
1. Open SharePoint Desigenr 2007
2. Open that web site where you want to customize the BreadCrumb
3. Go to that document library. Inside you can see a folder with the name of "Forms".
4. Double click to open it.
5. Double click on "AllItems.aspx" file.
6. Within that source, you can see the below code. sometime, the below code will not be available. If the code is not available, add the below code in between any of the 2 Content blocks.


Content1" ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server">



7. Change the SiteMapProvider value as "SPContentMapProvider" instead of "CurrentNavSiteMapProviderNoEncode"
See the Sample Code below:
Content1" ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server">


Navigate to a sub folder in the document library where we modified the code
And you are done..... :)

1 comment: