I’ve got a menu item I’m passing the location variable in order to setup certain display conditions as such…
<li {if '{embed:loc}' == 'blog' && member_group == "1"}class="schoolSelected"{/if}><a href="/blog">itemName_1</a></li>This works just dandy. However, I need to add a the same class to a second loc for each menu item.
My problem is with the syntax. I’m not sure how it should look, when I simply add an {if:else} I get parsing errors. I’m not sure where I add the second set of conditions for my second location.
I’m trying to do something like this -
{if '{embed:loc}' == 'blog' && member_group == "1"}class="schoolSelected"
{if:else}
{'{embed:loc}' == 'events' && member_group == "1"}class="schoolSelected"
{/if}could someone point me in the right direction?
Thanks