Hi all,
I've noticed that the Sys_Sub_Menu will only be displayed on a page if the page its a Top Menu (Sys_Main_Menu) item.
See here, where you can see that 'faq' is under 'help', which means that the sub menu is displayed in faq.
http://demo.boonex.com/faq.php
How can I move faq out of top menu and get to still display the sub menu?
Thanks
This is my signature, there are many like it but this one is mine... |
You can change this by going to your admin, builders, and click on navigation menu. You can copy it and create a new top navigation item. Just click on the item to open up the editor for the menu item. Geeks, making the world a better place |
Thanks GG but that's not what I was asking.
I don't want to add faq.php to top menu, but I want the submenu to be displayed.
Currently the submenu is only displayed if faq.php is in the top menu.
My site is heavily modified and looks nothing like the demo site.
Faq.php could be any page BTW
This is my signature, there are many like it but this one is mine... |
Edit BxBaseMenu.php around line 599 edit getCustomMenuItem function, add orange code at the start of the function so it will look like this.
$aRemove = array('faq.php'); if(in_array($sLink, $aRemove) !== false) return; $sIActiveClass = ($bActive) ? ' active' : ''; $sITarget = (strlen($sTarget)) ? $sTarget : '_self'; $sILink = (strpos($sLink, 'http://') === false && strpos($sLink, 'https://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink; $sIOnclick = (strlen($sOnclick)) ? 'onclick="'.$sOnclick.'"' : '';
Add all the pages "link" value (from menu builder) in the array to remove them from top menu but keep them in sub menu.
so much to do.... |
Yes, you are correct, I did not understand the question at first. You don't want the top navigation menu to appear; either all or in part, but still want the sub menu to appear. I did similar on my site; I hid the entire navigation menu and replaced it with a custom menu. However, I still wanted the sub menu to be on the site. Geeks, making the world a better place |
That's right GG.
Yes, you are correct, I did not understand the question at first. You don't want the top navigation menu to appear; either all or in part, but still want the sub menu to appear. I did similar on my site; I hid the entire navigation menu and replaced it with a custom menu. However, I still wanted the sub menu to be on the site.
This is my signature, there are many like it but this one is mine... |
Can you please elaborate on what you mean pls, I don't follow :)
Add all the pages "link" value (from menu builder) in the array to remove them from top menu but keep them in sub menu.
Edit BxBaseMenu.php around line 599 edit getCustomMenuItem function, add orange code at the start of the function so it will look like this.
$aRemove = array('faq.php'); if(in_array($sLink, $aRemove) !== false) return; $sIActiveClass = ($bActive) ? ' active' : ''; $sITarget = (strlen($sTarget)) ? $sTarget : '_self'; $sILink = (strpos($sLink, 'http://') === false && strpos($sLink, 'https://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink; $sIOnclick = (strlen($sOnclick)) ? 'onclick="'.$sOnclick.'"' : '';
Add all the pages "link" value (from menu builder) in the array to remove them from top menu but keep them in sub menu.
This is my signature, there are many like it but this one is mine... |
Right, it seems that the faq.php (and other such pages) need to be added under a top-level item in top menu for it to display the submenu.
Thanks P and GG
This is my signature, there are many like it but this one is mine... |