This question may be related to a resolved thread.
Hello,
This issue is related to my previous post (which was resolved). Here’s the situation: The magazine site that I am developing has four Article Sections (world affairs, science & innovation, etc) in the global navigation that need to be highlighted with a “current” CSS class when the user is reading an article within that section. Now, I know this would be simple enough with conditional statements referencing the name of the article’s url segment. But the way the site is structured has these Article Sections as categories rather than channels.
I’ve attempted a number of ways to get this to work with conditional statements and category tags and category variables, but so far I’m either getting errors or no class being applied whatsoever. Here’s the bit of HTML that I’m working with:
...
<ul class="mainNav accordion">
<li class="navCol1">
<h5 class="articleSections head">Article Sections</h5>
<ul>
<li><a href="#">World Affairs</a></li>
<li><a href="#">Health & Well-Being</a></li>
<li><a href="#">Science & Innovation</a></li>
<li><a href="#">Culture & Design</a></li>
</ul>
</li>
...I’m confused when it comes to applying the {if} statements and including the category variables. Any help would be greatly appreciated.
-Gam