Perfecting Menus, Paths and Breadcrumbs

Jody Hamilton

CTO of Zivtech

Drupal architect, developer, site builder, trainer and contributor

Jody Lynn @ drupal.org

@JodyHamilton

Definitions

A Menu is a Tree

One site : One tree

One page : One position

The Menu Tree vs Menu Displays

Common Menu Displays

Canonical Menu Positions & Core Problems

One page, one path, one breadcrumb, multiple menu items?

Canonical: We can have more than one but one is special

https://www.drupal.org/node/1875824

Menu Block

The only menu display you need

Menu Hall of Shame

Menu Contrib

A path is an address

URLs are part of your

A path should be RESTful

"Clean" & Human-readable is not enough

For stateless paths, remember a page <> a node

Canonical Paths

Drupal 8 has working canonical paths!

https://www.drupal.org/node/1160764

Paths are also more stateless in D8

Pathauto Mastery

Change pathauto updating settings on launch

Path Contrib Modules

Paths Hall of Shame

Breadcrumbs

A human-readable path

"the children find that birds have eaten the crumbs and they are lost in the woods"

Breadcrumbs in Drupal 7

Based on menu positions. But menu positions have no system canonicalness.

Many contrib modules to help:

Use Breadcrumbs by Path or Menu Trail by Path

Breadcrumbs in Drupal 8

http://www.palantir.net/blog/d8ftw-breadcrumbs-work

Breadcrumbs are now path-based!

Bear Install Profile

Questions

/