Hi, I have this code which is working great for generating a 2 level dropdown menu and applying the class "selected" to the current page of the top level. How can I adjust it so that the class "current" is applied to the top level when you're on one of its children also?
Add class selected to parent item in Nav
Hi, I have this code which is working great for generating a 2 level dropdown menu and applying the class "selected" to the current page of the top level. How can I adjust it so that the class "current" is applied to the top level when you're on one of its children also?
Thanks!
Amir
Here it is: http://our.umbraco.org/forum/developers/razor/25086-Top-Menu-active-when-sub-page-selected
Complete Code Below:
is working on a reply...