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
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 579 sites currently report using this module. View usage statistics.
- Last modified: December 19, 2011