Breadcrumb

Component ID

3229

Component name

Breadcrumb

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

3431

Component created

Component changed

Component body

Creates a breadcrumb trail, which serves as a navigational aid for the user. The breadcrumb trail contains links to pages higher in site hierarchy, i.e., above the current location.

The primary goal of this project is to replace Drupal core's breadcrumb trails functionality deeply buried into includes/menu.inc by moving it into a dedicated module, to be moved into core for D8.

Co-authors + maintainers wanted.

Goals

  1. Expose a block containing the breadcrumb. Make it possible to spawn multiple blocks (configurations) for Panels (Everywhere) compatiblity.
  2. Configuration options:
    • Optional custom prefix; e.g., "You are here:" (none by default)
    • Separator character/string, if any. (» by default)
    • Whether to include current page, optionally clickable. (disabled by default)
    • Configurable "Home" string.
    • Whether to hide breadcrumb if it only contains "Home".
  3. Make it exportable.
  4. Default to menu_get_active_breadcrumb() as data source, but allow to tie in other modules (such as Hansel breadcrumbs, Clickpath, or custom code)
  5. Purposively account for "attached alike" breadcrumb enhancements like a "Back to last non-admin page" link prefixed to the output, or a custom #pre_render that needs the entire menu link $tree for each link in $trail to convert each breadcrumb link into a dropdown link list providing access to sibling pages (like Crumbdown).
  6. Consider merging one or more of the following:

    ...but stay within the common scope and constraints of Drupal core.

  7. Move this module into Drupal 8 core.