WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multiflex-3 "Other Menu" items not displaying
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!
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:
--- Code: ---<?php show_menu2(1, SM2_ROOT+1, SM2_START+1, SM2_TRIM,'[if(level>1){<dd>}][if(level==1){<dt>}][a][menu_title]</a>[if(level>1){</dd>}][if(level==1){</dt>}]');?>
--- End code ---
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:
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:
Hi Ken,
I think now I know what you want. Try a new line 160 in index.php as follows:
--- Code: ---<?php show_menu2(3, SM2_CURR-1, SM2_ALL, SM2_ALL,'[if(level>0){<dd>}][if(level==0){<dt>}][a][menu_title]</a>[if(level>0){</dd>}][if(level==0){</dt>}]');?>
--- End code ---
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,
Menu is perfect!
Thank you very much.
Ken
Navigation
[0] Message Index
[#] Next page
Go to full version