Closed SergeyMiracle closed 9 years ago
It's on my list of things to do for the package :+1:
Nice :+1:
so, how to check the link is active?
The package will now automatically detect the currently active link, and add a new active
class to the item. Just be sure to echo out your item's attributes from within your view file, and use CSS to make any style changes as needed.
See the documentation on active links and rendering attributes for more information. I'll be closing this now, but if you guys run into any issues or have any questions, don't hesitate to speak up!
Great job :+1:
Hey, I need to add class to the parent UL if the link is active. How can I check if item is active in the items loop? Thanks!
Would be nice to parse menu with active element (current link).
Didn't find it in wiki or code.