Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 06:27:14 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155547
Posts in
21714
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
Sub menu
Pages: [
1
]
Go Down
Author
Topic: Sub menu (Read 499 times)
herojohan
Offline
Posts: 12
Sub menu
«
on:
June 15, 2011, 08:56:37 PM »
Help requested.
I have downloaded ''artificial_intellig
ence'', great template but one thing.. there should be on the left side a small menu.
As you can see here:
http://classichealth.org/pages/test-template.php
, there is too many page's to fit in the menu above.
My qeustion is, can i put those pages in the sub-menu.. how can i activate the second menu?
EDIT:: I've found something in index.php
Code:
show_menu(1, 1, 1, true, '<li>[a][menu_title]</a>','</li>','<ul id="menu_left">','</ul>');
So there is a second menu?
Greetings,
Johan
«
Last Edit: June 15, 2011, 09:07:29 PM by herojohan
»
Logged
crnogorac081
AddOn Development
Offline
Posts: 1706
Re: Sub menu
«
Reply #1 on:
June 15, 2011, 09:19:37 PM »
hi,
for best performances use show_menu2 :
http://code.jellycan.com/show_menu2/
in your case it coud be:
Code:
function show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_CURR+1,
$aOptions = SM2_TRIM,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul id="menu_left">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
)
Remember this is submenu, so if you have for example this page structure:
- Home
- Cars
- - Mercedes
- - BMW
- - Audi
- Houses
- - Small
- - Big
- - Vilas
- Products
- Devices
-
- And much more here
-
so if you click on Cars, sumenu will show mercedes, bmw, audi, but if you click on Products it will show nothing as there are no child items.. What you may looking for is not a submenu, but multiple menus... take a look at HELP PAGES:
http://www.websitebaker2.org/en/help/designer-guide/multiple-menus.php
You may split your menu in half and show half items in top horisontal menu and other half in side menu. You can see example of multiple menus on websitebaker home page: at the tope there are [ Home, Download, Add-ons, Help, Forum, Organisation] and when you hover on them you can see their submenus and another menu at the bottom: [ News, Legal Notice & Privacy Policy, Bugreport, Security Issues, Archive, Join us, Donate]
Also, consider using show_menu2 as it is much advanced than show_menu
I hope this helped
cheers
«
Last Edit: June 15, 2011, 09:31:31 PM by crnogorac081
»
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
herojohan
Offline
Posts: 12
Re: Sub menu
«
Reply #2 on:
June 16, 2011, 12:22:12 AM »
Quote from: crnogorac081 on June 15, 2011, 09:19:37 PM
hi,
for best performances use show_menu2 :
http://code.jellycan.com/show_menu2/
in your case it coud be:
Code:
function show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_CURR+1,
$aOptions = SM2_TRIM,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul id="menu_left">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
)
Remember this is submenu, so if you have for example this page structure:
- Home
- Cars
- - Mercedes
- - BMW
- - Audi
- Houses
- - Small
- - Big
- - Vilas
- Products
- Devices
-
- And much more here
-
so if you click on Cars, sumenu will show mercedes, bmw, audi, but if you click on Products it will show nothing as there are no child items.. What you may looking for is not a submenu, but multiple menus... take a look at HELP PAGES:
http://www.websitebaker2.org/en/help/designer-guide/multiple-menus.php
You may split your menu in half and show half items in top horisontal menu and other half in side menu. You can see example of multiple menus on websitebaker home page: at the tope there are [ Home, Download, Add-ons, Help, Forum, Organisation] and when you hover on them you can see their submenus and another menu at the bottom: [ News, Legal Notice & Privacy Policy, Bugreport, Security Issues, Archive, Join us, Donate]
Also, consider using show_menu2 as it is much advanced than show_menu
I hope this helped
cheers
The (not used) menu on the left of my website seems to be perfect but it's not editable, i'm not really good in ''scripting with PHP''.
Could you help me with this?
Would be great if it's editable like the top menu, i've seen something with secundair(e) menu.
It doesn't have to be really advanced, only the feature making Sub-Menu's..
Because the left menu seems to be good.
I'm really happy that you are helping me with this problem, it's pretty important.
Logged
crnogorac081
AddOn Development
Offline
Posts: 1706
Re: Sub menu
«
Reply #3 on:
June 16, 2011, 08:29:15 AM »
Hi, you can send me on PM your username/pwd for your site and detail explanation which items you want in which menu so I can take a look..
cheers
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
herojohan
Offline
Posts: 12
Re: Sub menu
«
Reply #4 on:
June 16, 2011, 02:22:11 PM »
Quote from: crnogorac081 on June 16, 2011, 08:29:15 AM
Hi, you can send me on PM your username/pwd for your site and detail explanation which items you want in which menu so I can take a look..
cheers
Done
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...