Maxim
Maxim

Reputation: 158

Drupal menu activation

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

Upvotes: 0

Views: 101

Answers (2)

danielson317
danielson317

Reputation: 3288

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

Upvotes: 0

Clive
Clive

Reputation: 36957

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

Upvotes: 1

Related Questions