I was struggling a little to figure out how breadcrumbs work in BackdropCMS and not finding anything in User Guide or Google search. My main question, was how they are created and formatted. 

I created a view at resources/faq but the breadcrumb was only showing home > faq. There is a breadcrumb block, but no configuration for it or indication how to make work. 

Seems like I needed to create a menu item before I got the full breadcrumb path working correctly. If I wanted the full breadcrumb path without the menu item, I could simply disable the menu item. Even with the menu item disabled, the breadcrumb still works. 

Are there any other tricks or resources for configuring breadcrumbs?

Accepted answer

Seems like I needed to create a menu item before I got the full breadcrumb path working correctly. If I wanted the full breadcrumb path without the menu item, I could simply disable the menu item. Even with the menu item disabled, the breadcrumb still works. 

This is exactly the case. Core breadcrumbs are based only on the menu system so without links in the menu for both `resources` and `resources/faq` the system won't know that `resources/faq` is a child link.

Comments

drop's picture

Seems like I needed to create a menu item before I got the full breadcrumb path working correctly. If I wanted the full breadcrumb path without the menu item, I could simply disable the menu item. Even with the menu item disabled, the breadcrumb still works. 

This is exactly the case. Core breadcrumbs are based only on the menu system so without links in the menu for both `resources` and `resources/faq` the system won't know that `resources/faq` is a child link.

I just went on another "breadcrumbs" adventure tonight as I helped someone on Gitter trace the source of breadcrumbs in Backdrop core. Just thought I would post some notes here. We were looking for the html character ">>" that Backdrop uses by default in breadcrumbs. The basis theme includes a function to override and hide this character and then replaces it with something else. 

We found it in the file core/includes/theme.inc function theme_breadcrumbs().

Here are some core issues about how breadcrumbs work in core:

https://github.com/backdrop/backdrop-issues/issues/2351
https://github.com/backdrop/backdrop-issues/issues/2260
https://github.com/backdrop/backdrop-issues/issues/1509