master_green Menu Help Needed

twst

Graham,

Great advice, thank you!

Simply select settings for the specific page, go down to Menu and select Leftmenu from the pull-down menu.  Works like a charm without any php coding!

Thanks again!

geetee


I came across this when I tried to use master_green also.

But it was me being dumb.

Have you looked at the Settings of the pages you want to appear on the left menu and made sure the Menu option is set to Menu2? It defaults to Menu1.

Ta
Graham

ruebenwurzel

Hello,

QuoteYes, I read that plus more on other threads, so your post is not helpful

So if you read it, why didn't you simply follow the advices. On help page all is explained step by step as you want. Simply do this and it will work. You only have to add your pages to the menu. Nothing more.

Matthias

twst

Matthias,

Yes, I read that plus more on other threads, so your post is not helpful.  I am up against a schedule deadline and need specific help with the index.php code in this template, as I am not a coder.  I am sure that many others would benefit from step-by-step instructions for folks who do not program for a living.

Again, I am using the master_green template and need the left hand column menu to work.

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

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

twst

#3
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

<!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">&nbsp;is Free Software released under the GNU/GPL License. -&nbsp;</font><a href="http://www.masterhomepage.ch" target="_blank"><font color="#232323">design by masterhomepage.ch</font></a>
</div>

</body>
</html>

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

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!