"I want to improve my site navigation by using CSS to style the link pointing to the current category differently (e.g. by having the link to the active category highlighted in a different color). Is there an easy way to use Nucleus to generate a unique CSS class based on the currently active category?"
Use the new skin variable
<%currentcat%> to generate your CSS class. This variable will return either a "yes" value if the current category is active or a "no" value if the category is not the currently active category.
In the "Category List Item" section of your template, put something like this in the
html tag you are using to generate your category list (e.g. a
li tag, etc):
.css file, make sure you define the CSS classes
.currcatyes (for the current active category) and
.currcatno (for all other categories) as desired.
Original forum thread (thanks, ftruscot!):
Total votes: 11 - Rating: 10.00