For the main navigation/menu at the top, I want MT to automatically add class="current" to the <li>. Problem is, mt:PageBasename returns nothing for the Home and News pages, which are actually index templates, not "pages" in the MT sense. To make it more complex, I want to leave "News" highlighted while a user is browsing a monthly archive, or individual entry page.
Is there such a thing as a tag that tells you the URL of what your currently browsing, regardless of whether its an index template, or archive, or page?
Here's the code I'm using:
CODE
<!-- Need some function here to set $CurrentPage -->
<div id="menu">
<div class="container">
<ul>
<li <mt:if var="CurrentPage" eq="home">class="current"</mt:If>><a href="<mt:blogURL />" title="">Home</a></li>
<li <mt:if var="CurrentPage" eq="news">class="current"</mt:if>><a href="<mt:link template="Acacia News Archive">" title="">News</a></li>
<mt:pages sort_by="title" sort_order="ascend">
<li <mt:If tag="PageBasename" eq="$CurrentPage">class="current"</mt:If>><a href="<mt:pagepermalink>" title=""><mt:pagetitle /></a></li>
</mt:pages>
</ul>
</div>
</div>
<div id="menu">
<div class="container">
<ul>
<li <mt:if var="CurrentPage" eq="home">class="current"</mt:If>><a href="<mt:blogURL />" title="">Home</a></li>
<li <mt:if var="CurrentPage" eq="news">class="current"</mt:if>><a href="<mt:link template="Acacia News Archive">" title="">News</a></li>
<mt:pages sort_by="title" sort_order="ascend">
<li <mt:If tag="PageBasename" eq="$CurrentPage">class="current"</mt:If>><a href="<mt:pagepermalink>" title=""><mt:pagetitle /></a></li>
</mt:pages>
</ul>
</div>
</div>
Thanks in advance for any help!
