Remove classes from showmenu2

ruebenwurzel

@christian

vanbemmel knows the docu, he has read it several times

@vanbemmel

if you use my code from above all pages and all subpages are shown even if a submenu is expanded.

Matthias

doc

Hello,

think the documentation Matthias is referring to is this one here. Have a look at the description of parameters. In addition check out the demo page to see different parameters of show_menu2 live.

Regards Christian

vanbemmel

How is this called then?   I don't know what to look for in the docu....

ruebenwurzel

Hello,

again, this is written in the docu. Please read it.

Matthias

vanbemmel

Hi Matthias,

thank you, it works great this way!
The only thing is that when we click on a submenu only the submenu's at the same level are displayed and not the main menu's. Where can we change that?

Kind regards.

ruebenwurzel

Hello,

all is written in the docu

show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, <li>[a][menu_title]</a>, </li>, '<ul>', '</ul>');

gives you only a list without classes

Matthias

vanbemmel

Hi Matthias,

thank you for your quick reply.  I read the manual three times but cannot find out how we can skip the class parts. We only need the <li> and <ul> output of show_menu2.

Can you help us a bit with this?

ruebenwurzel

Hello,

there is no need for changes in the include.php of show_menu2. Please read the docu, wich comes with the modul. You can adapt fully show_menu2 to use your classes. From the first look in your menucall i see that you the parameters with a wrong syntax. So please read the doku, how to set the paramters right.

Matthias

vanbemmel

Hello,

we use show_menu2 in our WB installation as follows.

show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n", false, false, false, "\n");

But this generates also a lot of extra classes like these:
* menu-current
* menu-first
* menu-expand
* menu-sibling

In our stylesheet we don't use these classes so the menu is not displayed right.
When we change the function "show_menu2" in modules\show_menu2\include.php on line 402 these changes are not visible and seems to be cached. 

Who can help us out?

Thank you.