I knew how to create this in evolution, but it seems that it doesn’t work in revolution.
how did you do it in evo? wayfinder works the same way in revo as it was in evo.
Wayfinder will by default output an ’active’ class for the current displayed resource and all of it’s parent containers as well.
Are you using any custom chunks for your Wayfinder call?
I’m actually not using wayfinder, I created navigation chunk containing navigation code.
Ther isn’t a way without wayfinder ?
Hmm... that should work. Maybe some other line in your css is overriding your menu styles. Changing your div class to an id might help you.
Have a look with Firebug - you’ll be able to see where the browser is getting the style from for each element in your menu.
Or post a link here if you can and I’ll check it for you.
Thanks for pointing me in right direction!
I had to add "ul" before "li.active a" and it worked.
Active state now works but there is a small problem now.
For example, if I navigate to Top level 3 it gets displayed as active, which is ok, but all of its sub items also are displayed as active (screenshot included)
you will need another rule for
.menu ul li ul li