I have a probably common question. For example whe have material type "news" and page made by views that displaying news teasers. We have menu item "news", that link to our view page and have url example.com/news. Each news page have url like example.com/news/[news title]. How could we set menu item "News" to be active on such pages /news/[news title]?
Asked
Active
Viewed 94 times
0
-
I know about menu_set_active_item and of course we could do it in module, but maybe thare is better way? – Maxim Aug 29 '12 at 12:05
2 Answers
1
The Menu Trail By Path module does exactly that:
This module sets the active-trail on menu items according to the current url.
I've used it for ages and it works great

Clive
- 36,918
- 8
- 87
- 113
0
I recommend the context module. It allows you to set the active trail based on url, view, content type, etc. Very powerful interface.

danielson317
- 3,121
- 3
- 28
- 43