Breadcrumbs

Breadcrumbs are a navigational element present in some, but not all, of the Libraries' website pages. 

When breadcrumbs are turned on for a page, they reflect the content titles of each part of the URL alias. Example: 

URL alias: /page1/page2

Breadcrumb: Home / Page 1 Title / Page 2 Title

View live examples:

How to add breadcrumbs

(Only Web Team members have the capability of doing this.)

Edit this file: /templates/controllers/global.php Follow the conventions by the (many) other lines of breadcrumb code.

On your dev server, the breadcrumbs should be viewable immediately. On production, you may have to clear the Drupal cache and OP cache.

Some pages, like User Activities, have special breadcrumb modifications available in the block alterations module.

When to add breadcrumbs

  • When the URL alias has 2+ slashes (example: /spaces/makerspace)
  • When it's important for the user to be able to go from a subpage to the page above it (example: from Makerspace back up to Explore Spaces)
  • When the breadcrumbs can help give context to the page

When not to add breadcrumbs

  • Standalone page that is not 2+ levels deep (such that the breadcrumb would read Home / Page)
  • When the URL alias structure does not correspond to existing pages
Updated

Website feedback

What is the issue with this page?