WebsiteBaker Support (2.8.x) > Templates, Menus & Design
master_green Menu Help Needed
twst:
How do I activate the Menu on the left column of the master_green template? I enabled Multiple menus in settings. What specific changes to the index.php need to be made, etc.
Many Thanks!
marathoner:
I'm not familiar with that template so this is just a guess. You enabled multiple menus...but did you create multiple menus? Take a look at the template index.php and you should see what the template is set up to use. If the template is already set to display multiple menus there won't be anything that you need to change in the template.
twst:
The WebsiteBaker example also shows the menu across the top, but nothing in the left column.
http://addons.WebsiteBaker.org/pages/lorem-ipsum.php?template=master_green
Here is the index.php code. Maybe someone can help me identify what needs to be changed? Thanks
--- Code: ---<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php page_title('','[WEBSITE_TITLE]'); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body class="page_bg">
<br />
<table width="760" height="155" border="0" align="center" cellpadding="0" cellspacing="0" class="header">
<tr>
<td valign="top">
<table width="97%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" width="150">
<form action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="post">
<input type="text" name="string" class="inputbox" size="20" value="<?php echo $TEXT['SEARCHING']; ?>..." />
<input type="hidden" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" />
</form>
</td>
<td align="right" valign="middle">
<?php show_menu(1,0,1,true,'<li>[a] [menu_title] [/a]</li>','','<ul id="mainlevel-nav">','</ul>','class="mainlevel-nav"','class="mainlevel-nav"'); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="10" cellspacing="0" class="content">
<tr>
<td>
<table width="740" border="0" cellspacing="0" cellpadding="0" class="contenttable">
<tr>
<td>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<?php show_breadcrumbs(); ?>
</td>
<td align="right">
<?php echo(date("l, d. F Y, H:i"));?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="180" border="0" cellspacing="0" cellpadding="0" class="contenttable">
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
<?php echo $TEXT['MENU']; ?>
</th>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?php show_menu(2,0,-1,true,'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>','','','','class="mainlevel"','class="mainlevel" id="active_menu"'); ?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="right" valign="top">
<table width="550" border="0" cellspacing="0" cellpadding="0" class="contenttable">
<tr>
<td align="left" valign="top">
<table class="blog" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table class="contentpaneopen">
<tr>
<td class="contentheading" width="100%">
<?php page_title('','[PAGE_TITLE]'); ?>
</td>
</tr>
</table>
<table class="contentpaneopen">
<tr>
<td valign="top">
<?php page_content(); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="footer">
<tr>
<td>
<img src="<?php echo TEMPLATE_DIR; ?>/images/footer.jpg" width="760" height="13" border="0" />
</td>
</tr>
</table>
<div align="center">
<a href="http://www.WebsiteBaker.org" target="_blank"><font color="#232323">WebsiteBaker</font></a><font color="#232323"> is Free Software released under the GNU/GPL License. - </font><a href="http://www.masterhomepage.ch" target="_blank"><font color="#232323">design by masterhomepage.ch</font></a>
</div>
</body>
</html>
--- End code ---
twst:
BTW, I am using WB 2.7. I saw the suggestion to use show_menu2, but I am not a php guru and need training wheels :-)
Like, change xyz From ___ To ___
Thanks
ruebenwurzel:
Hello,
please read first our help page before posting. thanks.
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php
All explained there. You only need Step 3.
Matthias
Navigation
[0] Message Index
[#] Next page
Go to full version