Moderator’s note: Split from this thread.
Sorry to dredge up an old thread, but I’ve been using Robin’s code above, and would like to add a class of “current” to the <li> when on the right page. I’ve tried this to no avail:
<li{if segment_3 == C{cat_id}} class="current"{/if}><a href="http://{path=gallery/category}C{cat_id}">{cat_name}</a></li>I’ve also tried it with and without quotes around the C{cat_id}, but whatever I do I can’t seem to get the class=“current” to output. I’m sure it’s something obvious, but I can’t see it. Anyone?