Multiflex-3 "Other Menu" items not displaying

sky writer

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!

Quote from: 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:


<?php show_menu2(1SM2_ROOT+1SM2_START+1SM2_TRIM,'[if(level>1){<dd>}][if(level==1){<dt>}][a][menu_title]</a>[if(level>1){</dd>}][if(level==1){</dt>}]');?>


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

BlackTiger

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

tugboat

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>

tugboat

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?

KenH

Michael,

Menu is perfect!

Thank you very much.

Ken

BlackTiger

Hi Ken,

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


<?php show_menu2(3SM2_CURR-1SM2_ALLSM2_ALL,'[if(level>0){<dd>}][if(level==0){<dt>}][a][menu_title]</a>[if(level>0){</dd>}][if(level==0){</dt>}]');?>


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

KenH

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

BlackTiger

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:


<?php show_menu2(1SM2_ROOT+1SM2_START+1SM2_TRIM,'[if(level>1){<dd>}][if(level==1){<dt>}][a][menu_title]</a>[if(level>1){</dd>}][if(level==1){</dt>}]');?>


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

KenH

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!