Click here to Skip to main content
15,891,700 members
Articles / Productivity Apps and Services / Sharepoint / SharePoint 2013
Tip/Trick

Add Breadcrumb with SharePoint 2013 Design Manager

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
12 Nov 2014CPOL 35.8K   1   4
How to add Breadcrumb with SharePoint 2013 Design Manager in HTML master page or HTML page layout.

Introduction

One day, I was in need of having my custom breadcrumb with Design Manager feature in SharePoint 2013, so I dug into it and found that there is one code snippet to add breadcrumb in our HTML page of master layout. We just need to put the below snippet in any of our master pages or page layout where we want to place the breadcrumb.

HTML
<div id="breadcrumb">
<!--MS:<ASP:SITEMAPPATH runat="server" 
sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" 
rendercurrentnodeaslink="false" hideinteriorrootnodes="true" 
RootNodeStyle-CssClass="bc-root">-->
<!--MS:<PATHSEPARATORTEMPLATE>-->
<!--MS:<ASP:IMAGE id="Image1" runat="Server" 
imageurl="/_catalogs/masterpage/images/breadcrumb_line.png">-->
<!--ME:</ASP:IMAGE>-->
<!--ME:</PATHSEPARATORTEMPLATE>-->
<!--ME:</ASP:SITEMAPPATH>-->
</div>

You can place this snippet into any HTML file of masterpage or page layout. Here, the image will work as path separator between items, you can place anything in between PATHSEPARATORTEMPLATE.

Through the above snippet, we can have custom breadcrumb for Publishing pages. Now to fulfill your requirement to have the actual branding, you can create or update CSS classes or write some scripts using jQuery.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
Having 5 years of experience with IT web technologies. I have been working on C# as my back end language and HTML5, CSS3, JavaScript, jQuery as front end development in Microsoft .net environment. I am currently working in Microsoft SharePoint technology, mainly focused on Branding stuffs. Very passionate about creative front end development and eager to learn new things about it. Somewhat I am gaming freak as well, specifically I am Valve Dota 2 fan. Smile | :)

Comments and Discussions

 
QuestionClient side SharePoint Site menu and breadcrumb Pin
Member 854203222-Aug-15 3:29
Member 854203222-Aug-15 3:29 
QuestionCan it show the folder-subfolder under "Pages" library? Pin
legendgodhk31-May-15 21:56
professionallegendgodhk31-May-15 21:56 
QuestionIt worked - however a question Pin
CraftShoppe18-Nov-14 14:23
CraftShoppe18-Nov-14 14:23 
SuggestionRe: It worked - however a question Pin
Pradip R18-Nov-14 19:12
Pradip R18-Nov-14 19:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.