WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • menu structure
  • Print
Pages: [1]   Go Down

Author Topic: menu structure  (Read 7883 times)

KaktusBR

  • Guest
menu structure
« on: September 26, 2008, 01:50:14 PM »
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.
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: menu structure
« Reply #1 on: September 26, 2008, 02:18:38 PM »
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:
Code: [Select]
<?php show_menu2(    2, SM2_ROOT, .... you will need:
Code: [Select]
<?php show_menu2(    2, SM2_ROOT+1.... 
I hope this helps a little and is workable for you.

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

  • Guest
Re: menu structure
« Reply #2 on: September 26, 2008, 04:54:48 PM »
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?
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: menu structure
« Reply #3 on: September 26, 2008, 05:20:03 PM »
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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

  • Guest
Re: menu structure
« Reply #4 on: September 26, 2008, 05:56:14 PM »
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.
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: menu structure
« Reply #5 on: September 26, 2008, 06:01:07 PM »
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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

KaktusBR

  • Guest
Re: menu structure
« Reply #6 on: September 26, 2008, 06:23:02 PM »
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
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: menu structure
« Reply #7 on: September 26, 2008, 07:08:36 PM »
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
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

KaktusBR

  • Guest
Re: menu structure
« Reply #8 on: September 28, 2008, 12:05:33 AM »
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.

 :-(
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: menu structure
« Reply #9 on: September 28, 2008, 12:21:10 AM »
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
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • menu structure
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2