I'm trying to get <li class="menu-first"> and <li class="menu-last"> to show in my code in my drop menu. I'm using the show_menu2 code (see below).
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, '[if (level=2){<li>[menu_title]}else{<li>[a][menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
I've seen the Documentation and i haven't been able to work it out. Any ideas would be great.
Thanks
Quote from: davidwaterman on March 24, 2011, 03:04:59 PM
I'm trying to get <li class="menu-first"> and <li class="menu-last"> ...
<?php
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, '[if (level=2){<li class="[class]">[menu_title]}else{<li class="[class]">[a][menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
?>
<?php
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, '<li class="[class]">[if (level=2){[menu_title]}else{[a][menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
?>
that's all...
Thanks DarkViper. Can't believe it was that easy.