In any site – Breadcrumb is essential as it helps user to understand where the content resides. This is the reason why content authors must make sure that contents are organized under proper nodes in Content Tree.
In any site – Breadcrumb is essential as it helps user to understand where the content resides. This is the reason why content authors must make sure that contents are organized under proper nodes in Content Tree.
Sometimes to make the content authoring easier – contents might have to be created outside the home node. This might break the connectivity between the items and the breadcrumb might look different. Lets take an example of products – As you can notice in above image , Product Landing page is present under Home Node which will indeed create a breadcrumb “Home >> Products ” Now lets have a look at the Product items,
As you have identified – these items are created outside the Home node and under “Items” folder under the Site. The resultant Breadcrumb for Product Item will be “ Home >> Bus and Coach”. But how to bring this under Products, making it reside under products without moving it ?Let’s see how it is done:
1.Create a simple template called “Virtual Breadcrumb” and create below fields

2.Now create the items using Virtual Breadcrumb template :

3.In view rendering of breadcrumb – Let’s see how it is rendered

With simple query – we can find the item with the virtual crumb [Actual Path field ] and build the Ancestors !! Now our breadcrumb will look like “ Home >> Products >>Bus and Coach ”4.Now lets rewrite the URL as well to make sure “Items” folder is removed and replaced to “Products” Custom Link Provider to replace Items to Products

Custom Item Resolver
Like this:
Like Loading...
Related
Published by Ramkumar Dhinakaran
Hello !
I am a Sitecore 10 Sitecore 10 .NET Developer Certified Developer from Luxembourg with more than 9 years of Experience in Web Content Management and Digital Marketing.
My key Expertise: Sitecore Migration / Azure Paas / Docker / Headless Development / Solr - Azure Cloud Search / SxA component Development / Sitecore JSS / Personalization of Components / Integration of Sitecore with Third party tools such as Eloqua - SalesForce - Aprimo DAM
Along these years, I have worked with different clients in various domains such as Insurance / Banking / Telecommunication / Healthcare / Automobile / Government .
View all posts by Ramkumar Dhinakaran