Why doesn’t this code mark the active entry as selected:
Template visit/.menu
{exp:channel:entries orderby="title" sort="asc" channel="visit" dynamic="no" show_empty="no" show_future_entries="yes" show_expired="no"}
<li {if embed:loc== "{url_title}"}class="selected"{/if}><a href="http://{title_permalink=visit}">{title}</a></li>
{/exp:channel:entries}ON my main template I have {embed="visit/.menu" loc="{segment_2}”}
where {segment_2} == {url_title}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.