I’m using the conditional If statements to change my menu buttons depending on what page you’re on, but something isn’t working.
For example, my about page looks like this:
{embed="includes/header"}
{embed="includes/navigation" loc == "who"}
<div id="top"></div>
<div id="content">
and my includes/navigation template looks like this:
<div id="masthead">
<div class="menu">
<ul>
<li{if "{embed:loc}" == "who"} id="who-current"{/if} id="who"><a href="http://dotcalmhelp.com/index.php/site/about/" title="About Us">Who?</a></li>
<li{if "{embed:loc}" == "what"} id="what-current"{/if} id="what"><a href="http://dotcalmhelp.com/index.php/site/services/" title="What We Do">What?</a></li>
<li{if "{embed:loc}" == "howmuch"} id="howmuch-current"{/if} id="howmuch"><a href="http://dotcalmhelp.com/index.php/site/pricing/" title="Pricing Options">How Much?</a></li>
<li{if "{embed:loc}" == "login"} id="login-current"{/if} id="login"><a href="http://dotcalmhelp.com/index.php/site/login/" title="Member Login">Login</a></li>
<li{if "{embed:loc}" == "contact"} id="contact-current"{/if} id="contact"><a href="#" title="Contact Us">Contact</a></li>
</ul>
<div class="clear"></div>
</div>
</div>
But it’s not working. Can you have two ID’s with this kind of conditional?
