Forum Discussion

Darian Glover's avatar
Darian Glover
Brass Contributor
Apr 13, 2018

Custom SharePoint Server 2016 Publishing Site Collection Breadcrumb Navigation Menu Using REST

My organization is migrating a SharePoint 2010 publishing site collection to SharePoint 2016. With the jumps up in versions, many customization will not work or simply have to go due to the amount of work it would take to update them. One such customization is breadcrumb navigation.

 

As the architect for the collection, I would like to implement a custom breadcrumb menu using the REST APIs, queried via client side JavaScript using JSON. I have not been able to figure out or find suitable examples on which endpoint(s) to use and how- if this is even possible.

 

I've been searching for anything I can find on SiteMapProvider. While the information I have found has been helpful, I have not found a perfect example on how, from the context of the current page, to query for the path up to the site or site collection root. We are using managed metadata navigation for global navigation and local/current navigation is manually structured- so I cannot easily parse the navigation tree to match against the current page.

 

Any assistance is appreciated.

 

Resources