Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 03:05:32 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
.
155540
Posts in
21712
Topics by
7737
Members
Latest Member:
deanmacullam
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
Show_Menu2 help
Pages: [
1
]
Go Down
Author
Topic: Show_Menu2 help (Read 666 times)
Smile
Offline
Posts: 31
Show_Menu2 help
«
on:
September 10, 2010, 11:41:34 AM »
I am working on the template "master_Green" and as far as i can tell show_menu2 is installed, but i cannot get the left menus to show. Top right work ok, all i want is the root menus (same as the top ones) to show on the left under the heading Menu.
Please help i am a novice so it needs to be simple!!!
<?php echo $TEXT['MENU']; ?>
</th>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?php show_menu2(2,0,-1,true,'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>','','','','class="mainlevel"','class="mainlevel" id="active_menu"'); ?>
</table>
</td>
This is the code in the template index.php file.
Thanks
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Show_Menu2 help
«
Reply #1 on:
September 10, 2010, 12:24:52 PM »
The first Digit in the Menu Call after the opening bracket stands for the menu in use. In you call it refers to menu number 2. Do populate it you'll have to assign a page to that menu in the page setting. Alternatively, if you want to display the same options, just change the '2' to a '1' ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Smile
Offline
Posts: 31
Re: Show_Menu2 help
«
Reply #2 on:
September 10, 2010, 12:42:57 PM »
Thanks for the reply Klaus ... i changed the 2 to 1 and the menus now show on the left but it also shows this peace of code class="mainlevel" id="active_menu"class="mainlevel" do i also have to remove it?
Many thanks
Alan
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Show_Menu2 help
«
Reply #3 on:
September 10, 2010, 12:51:22 PM »
Is this part here in 1 or 2 lines?
Code:
<?php show_menu2
(
2
,
0
,-
1
,
true
,
'<tr align="left"><td>[a] [menu_title] [/a] </td></tr>'
,
''
,
''
,
''
,
'class="mainlevel"'
,
'class="mainlevel" id="active_menu"'
);
?>
It should be in 1 Line.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Smile
Offline
Posts: 31
Re: Show_Menu2 help
«
Reply #4 on:
September 10, 2010, 12:58:57 PM »
Menu
class="mainlevel" id="active_menu"class="mainlevel"
Jo Love
Flower Care
Decalation
Window Shopping
Contact US
This is how it now shows on the website, the code is all on 1 line
Any idea why it is displaying the code.
Thanks
Alan
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Show_Menu2 help
«
Reply #5 on:
September 10, 2010, 01:06:38 PM »
It looks to me, that there is a break somewhere, maybe a missing single quote (or 1 to many).
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Smile
Offline
Posts: 31
Re: Show_Menu2 help
«
Reply #6 on:
September 10, 2010, 01:55:26 PM »
I dont seem to find anything that means anything to me
<?php show_menu2(1,0,-1,true,'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>','','','','class="mainlevel"','class="mainlevel" id="active_menu"'); ?>
this is all on one line, can any one see a problem.
Thanks
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Show_Menu2 help
«
Reply #7 on:
September 10, 2010, 04:41:10 PM »
OK ... you mixed up the functions show_menu and show_menu2 ... this code will work with the standard call of show_menu:
Code:
show_menu(
1,
0,
-1,
true,
'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>',
'',
'',
'',
'class="mainlevel"',
'class="mainlevel" id="active_menu"'
);
The showmenu2 call has different positions for the various items, in fact it has other variables and options:
Code:
show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_CURR+1,
$aOptions = SM2_TRIM,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '[ul]',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
)
read more about show_menu2 here:
http://www.websitebakers.de/sm2/pages/enterprise.php
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Smile
Offline
Posts: 31
Re: Show_Menu2 help
«
Reply #8 on:
September 10, 2010, 04:42:53 PM »
This is a screen shot of the problem
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Show_Menu2 help
«
Reply #9 on:
September 10, 2010, 04:50:33 PM »
I posted the solution ... no further need for a screenshot ... I will delete it with your next reply.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
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...