WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: KenH on April 22, 2009, 03:38:54 PM

Title: Multiflex-3 "Other Menu" items not displaying
Post by: KenH on April 22, 2009, 03:38:54 PM
I can't get "Extra Menu" items to appear on the left-hand menu unless I choose "None" as the parent. Then, they appear on all pages. If I select an existing page as parent, the menu item is not visible.

Any ideas?

Thank you!
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: BlackTiger on April 22, 2009, 05:18:39 PM
I don't know if I understand what you want. The "Extra Menu" of this template is designed as a fixed menu - that means it always shows the same structure. This structure of pages has to be at the root - so this works as intended.

If you want to show a submenu of the current page of the main menu you have to alter the call to show_menu2 at line 160 of index.php. Here is an example for such a call:

Code: [Select]
<?php show_menu2(1SM2_ROOT+1SM2_START+1SM2_TRIM,&#39;[if(level>1){<dd>}][if(level==1){<dt>}][a][menu_title]</a>[if(level>1){</dd>}][if(level==1){</dt>}]&#39;);?>

If this is not your problem, please give more details about your structure of pages and how you want to put them into the different menu blocks.

regards
Michael
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: KenH on April 22, 2009, 05:50:56 PM
Michael,

Thanks for your reply.

I would like a menu, which would consist of links to anchors on the current page, to appear in the left-hand menu (the Multiflex author calls this 'Other Menu').

To the parent page, I have added 'menu link' pages and designated the menu as 'Extra Menu'. These sub-pages link to the parent and the desired anchor.

In 'Page Settings', if I set 'Parent' as 'None', the bulleted link appears, but on every page of the site. If I set 'Parent' to the actual page I desire the link to appear, it does not appear at all.

If you wish, I could PM you the IP to my local server so you may take a look.

Ken
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: BlackTiger on April 22, 2009, 06:07:59 PM
Hi Ken,

I think now I know what you want. Try a new line 160 in index.php as follows:

Code: [Select]
<?php show_menu2(3SM2_CURR-1SM2_ALLSM2_ALL,&#39;[if(level>0){<dd>}][if(level==0){<dt>}][a][menu_title]</a>[if(level>0){</dd>}][if(level==0){</dt>}]&#39;);?>

This should show all sub-pages of the current page which have "Extra Menu" as menu in the left block.

regards
Michael

Edit: I meant line 160 - not 126
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: KenH on April 22, 2009, 06:38:59 PM
Michael,

Menu is perfect!

Thank you very much.

Ken
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: tugboat on May 13, 2009, 10:14:06 PM
I think I have a similar issue, I have a few menu items with dropdowns, but on a couple I have dropdowns into those submenu parents...

Like this:

Menu
   Second menu
       Third Menu
Menu
   Second menu
Menu
   Second menu

The thing is that my third are acting like second... Can you help?
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: tugboat on May 13, 2009, 10:14:46 PM
here is how I have it now:

<!-- Navigation Level 1 -->
        <div class="nav1">

            <?php show_menu2(2, SM2_ROOT, SM2_START); ?>

        </div>
       
         <!-- A.3 HEADER BOTTOM -->
      <div class="header-bottom">

        <!-- Navigation Level 2 (Drop-down menus) -->
        <div class="nav2">

          <!-- Navigation item -->
          <ul>
          <?php show_menu2(1, SM2_ROOT, SM2_ALL,SM2_ALL,'<li>[a][menu_title]
                        [if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
                        [if(class!=menu-expand){</a>}]
                        [if(class!=menu-last){</li>}]
                        [if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]','','',''); ?>
          </ul>

        </div>
      </div>
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: BlackTiger on May 13, 2009, 11:23:22 PM
Hi tugboat,

the menu of the Multiflex-3 template is only designed for 2 levels. To get the third level working you mainly have to adjust the css file, but I think this will not be an easy task.

regards
Michael
Title: Re: Multiflex-3 "Other Menu" items not displaying
Post by: sky writer on July 15, 2009, 06:57:01 PM
Blacktiger... thank you so so so much for this.  I have been looking for this menu structure modification for a long time.

Thank you also to KenH for asking the right question.

Cheers!

I don't know if I understand what you want. The "Extra Menu" of this template is designed as a fixed menu - that means it always shows the same structure. This structure of pages has to be at the root - so this works as intended.

If you want to show a submenu of the current page of the main menu you have to alter the call to show_menu2 at line 160 of index.php. Here is an example for such a call:

Code: [Select]
<?php show_menu2(1SM2_ROOT+1SM2_START+1SM2_TRIM,&#39;[if(level>1){<dd>}][if(level==1){<dt>}][a][menu_title]</a>[if(level>1){</dd>}][if(level==1){</dt>}]&#39;);?>

If this is not your problem, please give more details about your structure of pages and how you want to put them into the different menu blocks.

regards
Michael