Is it possible to create the path/url alias based on where the page falls in the menu structure?

For example, if on my website I have an 'About Us' section, and within that, an 'Our History' section, and I'm creating a new page to sit underneath the 'Our History' section, I'd want the URL structure to be 'http://www.example.com/about-us/our-history/new-page'. Is this possible?

Thanks,
Dave

Comments

damien tournoud’s picture

Project: Drupal core » Pathauto
Version: 6.9 » 6.x-2.x-dev
Component: path.module » Code
Category: feature » support

Yes, pathauto knows how to do that.

Note that it only works if the tree structure is in the Navigation menu.

dave reid’s picture

Status: Active » Fixed

You'll want to play with the [menupath-raw] token.

probocop’s picture

Ahh, so it would only work specifically on the Navigation menu, rather than say Primary Links?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.