I am working on a sidebar navigation here. The navigation works correctly but I am trying to highlight the active entry.
In the past I have been able to use a segment_3 conditional to tag the active entry with a class="active", however, something is missing in my approach this time.
I have tested for segment_3 and I have tested for {url_title} but when I put them together like this, I don't get any results:
<ul>
{exp:channel:entries channel="services" sort="asc" dynamic="no" }
<li {if segment_3 == "{url_title}"} class="active" {/if} ><a href="/services/detail/{url_title}">{title}</a></li>
{/exp:channel:entries}
</ul>
I would appreciate some guidance on how to resolve this.