Having some issues with assigning a 'current' class to a macro. Basically I've created a custom menu from four content pickers which is pointing to specific sections of the site - however I cannot figure out how to create an 'active state' to the menu points.
So now I need to figure out if the current page that I am on is the same as one the four individual links, and if so - attach the 'current' class to each of them.
Does it make sense? I'm not much of a guru yet to this but at least I'm learning! :)
if id is same as contentpicker value
Having some issues with assigning a 'current' class to a macro. Basically I've created a custom menu from four content pickers which is pointing to specific sections of the site - however I cannot figure out how to create an 'active state' to the menu points.
So now I need to figure out if the current page that I am on is the same as one the four individual links, and if so - attach the 'current' class to each of them.
Does it make sense? I'm not much of a guru yet to this but at least I'm learning! :)
Hi Daniel,
Try this:
Thank you! Much appreciated, that did the trick!
I figured it wasn't that difficult and I'm sure I could've figured it out myself - must've hit a wall there. :D
You're welcome! And welcome to the Umbraco community!
is working on a reply...