How have you implemented breadcrumb navigation?

0
As of recently, I've been considering breadcrumb navigation to be one of the best ways to navigate back. It's even more practical than 'Go to previous page' buttons on the bottom of the page. Most often the path to a certain page is always the same, so you can somewhat hard-code the breadcrumb path atop the page. Sometimes it's not, so you need a way to create a dynamic breadcrumb path. I've explored various methods and I've noticed that flexibility and accuracy often come at the cost of performance (e.g. a non-persistent object for each opened page).    So how have you implemented breadcrumb navigation in your pages?
asked
2 answers
1

Hey Sander, 

I build couple of them, for starting point I always go for building block (and later on I adjust styling), if you will not show so many data (lot of grid, microflow, etc.) I will go with enumeration and just based of conditional visibility show different part of page, you will get great performance, if you have a lot of data for each step I will create specific page and then again based of enumeration you can show different step. NOTE: to get great performance even with pages, use oql to create NPE and do all calculation inside microflow for opening new step, so your data is loaded before page is open.

Best regards, Slavko

answered
1

Hi Sander,

 

Have you had a chance to try the Dynamic Breadcrumb module? (Marketplace link)

I've used it in several projects, and it has worked perfectly for my use cases. To implement it, simply add the appropriate snippet to your pages:

  • SNIP_BreadCrumb_Nav → For pages accessible via your main navigation
  • SNIP_BreadCrumb → For underlying pages

 

Hopefully this works out of the box for you or helps you with creating custom breadcrumb navigation!

answered