WebsiteBaker Support (2.8.x) > Templates, Menus & Design

show_menu2: valid XHTML and CSS selectable menus

<< < (53/64) > >>

Lotus:
Thanx for your answer brofield, but i could´t get it to work.
Tried the obvius and several other..

--- Code: ---<?php show_menu2(2,SM2_ROOT+1,SM2_START+1,SM2_ALL|SM2_NOCACHE ); ?>
--- End code ---

I just will have to do something else about the menu..

brofield:
If it didn't make a difference then it isn't the caching.

The multiple menu code is only barely tested because I really don't see the point in it. I've always felt that the multiply rooted menu is the best way to implement multiple menus.

Sorry, but I don't have anymore suggestions at the moment and no time to investigate.

Lotus:
I successfully managed to get the behaviour i wanted by specifying page_id as root:

--- Code: ---<?php show_menu2(2,5 ); ?>
--- End code ---
But then the EN part doesn´t work :-), but i think som PHP can take care of that.

This is interesting though..

--- Quote from: brofield on January 05, 2009, 10:44:38 AM ---..I've always felt that the multiply rooted menu is the best way to implement multiple menus.

--- End quote ---
Do you mean that every menu shall be rooted from level 0 (zero)?

brofield:
I mean using a single menu tree with multiple "roots". Like it appears that you are doing (but mixing it with multiple menus). i.e. http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php

EN
 ...
JA
 ...
FR
 ...

Or similarly...

Top
 - main menu (e.g. page_id = 12)
   - page 1
   - page 2
 - util root (e.g. page_id = 32)
   - util page 1
   - util page 2
 - other root  (e.g. page_id = 38)
    - other page 1
    - other page 2

show_menu2(0, 12); // main menu
show_menu2(0, 32) // util menu
show_menu2(0, 38) // other menu

Lotus:
Ah..ok..yes I think so too, you also get a great overlook of pages in admin.

Thanx for all help brofield and happy new year from Sweden!  :-D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version