Download & Extend

Menu Trail By Path

Menu Trail By Path sets the active-trail on menu items according to the current url.

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

blog
blog/category1
blog/category1/article1

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 taxonomy term and views. Just enable the module to see the results.

7.x-2.x branch

7.x-2.x branch is completely rewritten. It should be compatible with any menu, including menu_blocks.

Can also handles breadcrumb by path.

6.x-1.x branch

NOTE: The 6.x-1.x branch is no longer supported and will not receive further development.

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

Recommended releases

Version Downloads Date Links
7.x-2.0 tar.gz (8.66 KB) | zip (9.28 KB) 2012-Oct-26 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (8.75 KB) | zip (9.37 KB) 2013-Mar-13 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 - 11 commits
    last: 38 weeks ago, first: 1 year ago
  • redndahead - 2 commits
    last: 1 year ago, first: 3 years ago

Issues for Menu Trail By Path

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants