show menu - instert static li

c0de

What do you think? xD

So yes it works, without the if(level==root). But yeah it works perfect!

Argos

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

c0de

You Man are a WebsiteBaker God!

xD Rock on!

Argos

If I understand the situation right, I would suggest you take the static li out of the showmenu2 call, and add it to the ul as such. So something like (not tested, will probably not work, but it's an idea):

<ul>
<?php if(level==root){<li style="float:right;"><a href="'.WB_URL.'/pages/kontakt/biete-wohnung.php">&raquoBiete Wohnung &laquo;</a></li> }
show_menu2(1SM2_ROOTSM2_ALLSM2_ALL,'<li>[a][menu_title]
       [if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
       [if(class!=menu-expand){</a>}]
       [if(class!=menu-last){</li>}]
       [if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]'
,'','',''); ?>

</ul>
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

c0de

#1
New Day new Problem xD

First i read the Documentian from show_menu its gives me an headache but now i knew what i can do all! Very HUGE Plugin!

My Problem is now i need a static <li> in my Menu which is right floated.

The best thing i get is:
<ul>
<?php show_menu2(1SM2_ROOTSM2_ALLSM2_ALL,'<li>[a][menu_title]
       [if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
       [if(class!=menu-expand){</a>}]
       [if(class!=menu-last){</li>}]
   =>  [if(level==root){<li style="float:right;"><a href="'
.WB_URL.'/pages/kontakt/biete-wohnung.php">&raquo; Biete Wohnung &laquo;</a></li> }]
       [if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]'
,'','',''); ?>

</ul>


What gives me the li 2 times! And its shown on subitems also as first Item! (its an dropdown like in Multiflex 3)
I tried many several versions of this code but nothing works, the most trys shot my Template...

I think there is an foreach or something and becouse of this its shown more than ones, but why in the subitems?

Has please anybody an idea how to fix this?
I put an Image with the Problem as attachment!

Sincerly, c0de

[gelöscht durch Administrator]