menu-first show_menu2

davidwaterman

Thanks DarkViper. Can't believe it was that easy.

DarkViper

#2
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
(1SM2_ROOTSM2_ALLSM2_ALL'[if (level=2){<li class="[class]">[menu_title]}else{<li class="[class]">[a][menu_title]</a>}]'"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">');
?>


Code (shorter version) Select
<?php
show_menu2
(1SM2_ROOTSM2_ALLSM2_ALL'<li class="[class]">[if (level=2){[menu_title]}else{[a][menu_title]</a>}]'"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">');
?>


that's all...
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

davidwaterman

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