I have a menu like this:

enter image description here

The sidebar on the left is the Main Menu with links. The first link is STOCKLIJST, that will link to the page stocklijst/aangeboden. As you can see in the second sidebar (this is a menu in a block that will only be visible when page starts with stocklijst/*) the link is active.

But when I click on the second link in the second sidebar the 'STOCKLIJST' in the first sidebar won't be selected anymore.

Why? : Because this is a link to the first link in the second sidebar ... .

How should I could make sure that the first link is active on multiple pages? Or is the easiest way to for this with JavaScript or PHP?


I've tried the menu position and added a trigger like this: enter image description here

But that doesn't do much. Something I do wrong?

  • Is it Drupal application? May 7, 2014 at 7:38
  • Yes ... It's a Drupal 7 app
    – nielsv
    May 7, 2014 at 7:40
  • I used Menu Position module for active menu in my project and works great for me. Check my answer May 7, 2014 at 7:51
  • Having a little problem to configure the Menu Position Module, could you take a look at my update?
    – nielsv
    May 7, 2014 at 8:01

1 Answer 1


I think you can achieve that by one of the following modules

1)Menu Position

Often times site builders want certain types of content to appear in a specific position in the navigational menu. The simplest solution, adding all of that content individually to the menu system, has performance and usability issues. (Imagine hundreds of menu items added to one spot in the menu.)

This module allows for the creation of rules that will dynamically add the current page into the menu system at the requested spots.

2) 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.




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.