Drupal menu activation

107 Views Asked by At

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]?

2

There are 2 best solutions below

0
On

I recommend the context module. It allows you to set the active trail based on url, view, content type, etc. Very powerful interface.

0
On

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