Can´t get show_menu2(2, SM2_ROOT+1, SM2_START); working - WORKAROUND

casinnova

i want to reach    show_menu2(2, SM2_ROOT+1)

but it doesnt work in a multilingual site where a page in  $menu[2]  is a child of a page in $menu[1]

show_menu2(2, SM2_CURR)    does work, but once you navigate deeper than "Level 1" then it no longer shows. 


Lotus put up a quite thorough explanation...   if someone could just give us a slight hint.... or just tell us its impossible.    :-D :lol: :-P

BerndJM

Would you please give this a try:
Read the manual and give your attention to the part which parameters are manditory! And how to combine paramters.

Additional it would be a good idea to show us a example what you want to reach ...

Regards Bernd
In theory, there is no difference between theory and practice. But, in practice, there is.

casinnova

i have the same exact problem....    i have no idea how to work around this...  i HAVE tried.   :?

Lotus

Hello, i have got 2 menus but I cant get the no: 2 to work as i want.

Doesn´t work
show_menu2(2, SM2_ROOT+1, SM2_START);

Works but s not what i want!
show_menu2(2, SM2_CURR);

As you see I want it to always show those pages in level 1 set to menu no:2 no matter where you are in the page tree. When using SM2_CURR they will dissapear as soon you go deeper then level 1.

Can I get around this somehow, is it a bug, is it something wrong with my installation?

These are the menus incorp. in the template.

Main --> show_menu2(1, SM2_ROOT+1, SM2_START);
Choose lang --> show_menu2(1, SM2_ROOT, SM2_START);
Main subpages --> show_menu2(1, SM2_ROOT+2);
Special --> show_menu2(2, SM2_ROOT);
The special i rather would like to have show_menu2(2, SM2_ROOT+1, SM2_START);

EDIT!
So how did I solve this?
By moving all pages set to menu no:2 to level 0 and use this code:
show_menu2(2, SM2_ROOT);
I have a multilanguage site so all corresponding pages in other languages has to use a higher menu no.

EDIT2!
But then another instance of show_menu2 stopped working
show_menu2(1, SM2_ROOT+1, SM2_START)