This module sets the active-trail on menu items according to the current url.

For example if you are at yoursite.com/guides/category/guide1
Menu Items with these paths will get the active-trail class on them and expand accordingly.

guides
guides/category
guides/category/guide1

This is particularly useful if you want a lot of nodes to appear as children of certain nodes / taxonomy term / views / referenced nodes / etc, but do not want to add them all to the menu. eg. hundreds of blog articles.

Menu Trail By Path is best used in conjunction with Pathauto.

This module is similar to Menutrails (D6) and Menu Position (D7), except no configuration is needed. It uses the path URL to determine the active-trail instead of setting rules for each node type. Theoretically, it also works for non-node pages such as tax term and views. Just enable the module to see the results.

7.x-2.x branch

NOTE: The 7.x-2.x branch requires Drupal 7.9 or higher.

7.x-2.x branch is completely rewritten. It should be compatible with any menu, including menu_blocks. (Custom menu may need edit and re-saved to trigger the fix)

Can also handles breadcrumb by path.

6.x-1.x branch

The 6.x-1.x branch only works with primary and secondary links.

To add this functionality for menus other than primary and secondary links, see this issue.

Downloads

Other releases

Version Downloads Date Links
7.x-2.0-rc1 tar.gz (8.82 KB) | zip (9.42 KB) 2011-Nov-30 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (8.93 KB) | zip (9.58 KB) 2011-Dec-16 Notes
6.x-1.x-dev tar.gz (6.75 KB) | zip (7.21 KB) 2011-Feb-25 Notes

Project Information


Maintainers for Menu Trail By Path

  • SeriousMatters - 7 commits
    last: 8 weeks ago, first: 13 weeks ago
  • redndahead - 2 commits
    last: 13 weeks ago, first: 1 year ago

Issues for Menu Trail By Path

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 17 Mar 10