I have 3 content type
HTML
HTML4
HTML5
2 menu block
HTML4
HTML5
In my main menu have 2 menu links (HOME | HTML)
HTML4 (menu block) show the contents of HTML4 (content type).
I configured the HTML4 and HTML5 (2 menu block) should be appear when user click the HTML (main menu). It is fine.
My question is : how to active(highlighting) HTML(main menu) when the user click a link from the HTML4 or HTML5 (2 menu block) ?
Solution : I found the module name is “menu position” http://drupal.org/project/menu_position.
This module make relationship between the main menu and content type.
Well to do that:
1> make sure you are using your own theme.
2> Write the css for the menu to highlight when one clicks inside.
To Know when the child of the menu is clicked
Use
jQueryto check for the children being clicked and add the highlight class to the menu name using $(‘#MenuDiv’).addClass(‘highlightClass’);If you post code of your menu, maybe I can help from jQuery point of view.