Hello,

What is the recommended breadcrumb solution for Backdrop CMS?

I actually need something relatively simple:
For example, for a content type >Coffeeshop<, the breadcrumb on the content page should look like this:
Home -> Coffeeshops (with a link that leads to a Views page with the URL /coffeeshops-index) -> Content Title

In Drupal, I always used the Custom Breadcrumbs module for this.
There seems to be a version for Backdrop CMS as well, but unfortunately, it is still in an early alpha stage and generates a lot of error messages for me.

Warning: Invalid argument supplied for foreach() in _custom_breadcrumbs_sort_cmp() (Line 158 of /modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).

Undefined property: stdClass::$language in custom_breadcrumbs_page() (Line 94 of /modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).

Both appear when I am on /admin/structure/custom_breadcrumbs.

Are there any other modules where you can freely define the name and URL of the breadcrumb elements?

Comments

You may want to create an issue in the Custom Breadcrumbs issue queue. The maintainer there is very active in the community. I see the module is being used in 34 sites, which (in Backdrop terms) means it's actively used, so there may be an interest in making this work. 

If you post how you are doing this in Drupal, and how you are trying to do it in Backdrop, I can see if I can reproduce the problems and help.

Thanks for the help!

"If you post how you are doing this in Drupal, and how you are trying to do it in Backdrop, I can see if I can reproduce the problems and help."

The following setting works in Drupal 7. In Backdrop CMS, the breadcrumbs are displayed correctly, but there are many error messages.

Prerequisites:

  • A Backdrop site with at least two enabled languages
  • At least two configured breadcrumbs

Installed modules:

Setup a Custom Breadcrumb:
/admin/structure/custom_breadcrumbs/node/add

Errors in /admin/structure/custom_breadcrumbs

These are the errors from the picture:

  • Notice: Trying to access array offset on value of type null in _custom_breadcrumbs_sort_cmp() (Zeile 151 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Trying to access array offset on value of type null in _custom_breadcrumbs_sort_cmp() (Zeile 158 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Warning: Invalid argument supplied for foreach() in _custom_breadcrumbs_sort_cmp() (Zeile 158 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Undefined property: stdClass::$ in _custom_breadcrumbs_sort_cmp() (Zeile 161 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Undefined property: stdClass::$ in _custom_breadcrumbs_sort_cmp() (Zeile 161 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Undefined index: name in _custom_breadcrumbs_sort_cmp() (Zeile 168 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Undefined property: stdClass::$language in custom_breadcrumbs_page() (Zeile 94 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).
  • Notice: Undefined property: stdClass::$language in custom_breadcrumbs_page() (Zeile 94 von /home/-/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc).