I’m running v2.6.1 - Build: 20130506 -. I apologize in advance, but it has been while since I worked on a Expression site. I’m having trouble with dynamic navigation and simple conditionals (sorry I’m also having trouble with my conditional code showing up in this post. {if segment_1==""} is after the a tag as are the rest) I changed categories to readings.
<nav class="group" role="navigation">
<ul id="nav" class="group">
<li><a href="/class=active"><strong>now</strong></a></li>
<li><a href="/articles/class=active"><strong>desk</strong></a></li>
<li><a href="/book-readings/readings/class=active"><stong>books</stong></a></li>
<li><a href="/shelf/readingsclass=active"><strong>shelf</strong></a></li>
</ul>
</nav>When I inspect the code in the browser, the conditional code shows up? I also noticed that the end tag doesn’t show {/if} i.e.
<a href="/articles/%22if=%22" class="active"><strong>articles</strong></a>I run into this problem before, and the suggested solution was using a plugin. I’d rather not do that.
Thanks for the response. I’m looking over that page you sent. Yeah, I tried to post the template code, but every time I posted, the form removed that code. For anyone checking this thread, I’ve decided not to use the plugin switchee because it’s used for complex conditionals, not simple.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.