menu structure

Ruud

I think all answers are pointing to a frontend solution.
The question was for the backend.

Quote from: KaktusBR on September 26, 2008, 01:50:14 PM
...and it is working but in admin i have all menu items together. how can i sort menus in admin?

I'm afraid the answer is simple.
You can't.

Just group the menu's manually when you create ne items to make things a bit manageable.


Ruud
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

KaktusBR

i installed last version show_menu2, calling menu e.g. <?php show_menu2(1, SM2_CURR+1, SM2_CURR+2); ?>

not working. same as last time.  i read documentation but not helped. i really don't know what i'm doing wrong.

:-(

BerndJM

Hi,
if you use show_menu2 you have to define additional parameter like $aMaxLevel, please have  a look at the documentation -> http://code.jellycan.com/files/show_menu2-README.txt

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

KaktusBR

sorry i must be anoing. thing is that same thing is when i call <?php show_menu2 (1, SM2_ROOT+1); ?>

but ok, hopefully i will sort it out

Stefek

Hello Kaktus.

Did you read something about show_menu2 ?

Maybe this is better for you.

I never worked with the standard "show_menu" since when I started working with WB we allready had the "improved" SM2.
Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

on javascript admin is everything on. on my info.php file i have:

$menu[1]   = 'Main menu';
$menu[2]   = 'top menu';

and calling it <?php show_menu (1); ?> and <?php show_menu (2); ?>

<?php show_menu (1); ?> is showing:

MENU1
    * Menu11
    * Menu12
   
   
<?php show_menu (2); ?> is showing:

MENU2
    * Menu21
    * Menu22
   
so this is ok. i have top menu and left menu. but when i call <?php show_menu (1, SM_ROOT+1); ?> it is showing only - Menu11, Menu12 but when is MENU2 active same code is showing - Menu21, Menu22.  <?php show_menu ( here can be any number , SM_ROOT+1); ?> - there can be any number always is showing only childs of active parent menu.

Stefek

Quote from: KaktusBR on September 26, 2008, 04:54:48 PM
thank you very much stefek. it is great.
...
but maybe i must play with it more. i tried it only on localhost. i will try it on real website at evening. or i need change settings, or new addon?

Localhost or Live-Server it does no matter. The result will be the same.

Did you put your "menu 2" and "menu 3" pages below the ROOT LEVEL?
You need to go to every single page for menu 2 and then change the options (Set parent to "menu2" and so fort).
This should work.

You should play arround until you become familiar with this befor you make it "fix" on your live-server.

BTW. Did you check the java script admin on?

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

thank you very much stefek. it is great.

it is almost working. i played with it and it is working only when i call <?php show_menu (1, SM_ROOT+1); ?>, but only first menu. if i call <?php show_menu (2, SM_ROOT+1); ?> it is showing same menu.

but maybe i must play with it more. i tried it only on localhost. i will try it on real website at evening. or i need change settings, or new addon?

Stefek

Hello!

As I understand you correctly:
you want to separate the pages of the different menus in "groups".

Yo can do that if you go a level deeper with your menu:
- Start
- Second page
- third page
+[] MENU 2
- 2 page 1
- 2 page 2
+[] MENU 3
- 3 page 1
- 3 page 2

Can you understand this?

After doing so, you must redefine your sm2 declaration.
For example, if you have now:
<?php show_menu2(    2SM2_ROOT, .... 
you will need:
<?php show_menu2(    2SM2_ROOT+1.... 

I hope this helps a little and is workable for you.

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

hi, i'm working with WB about month and i love it. best solution for small projects.

i have just one problem for which i didn't find solution.

i know if i want multiple menus i must add to info.php file something like this

$menu[1]    = 'Main navigation';
$menu[2]    = 'Top navigation';
$menu[3]    = 'Bottom navigation';

and it is working but in admin i have all menu items together. how can i sort menus in admin?

i was thinking e.g. create main menu which will be not showing and all child menus yes but it is not working.

hope i explaned as i wanted. please can help me anybody? sorry for dummy question but really i didn't find how.