I want to display the sub menu on the index page, but only for guests. Logged in members wont get a sub menu.
To test, I modified BxBaseMenu.php (added code in red)
//--- Submenu Menu ---//
$sSubMenu = '';
if(!defined('BX_INDEX_PAGE') && !defined('BX_JOIN_PAGE'))
$sSubMenu = $this->genSubMenus();
if(!isMember() && (defined('BX_INDEX_PAGE'))) $sSubMenu = $this->genSubMenus();
$sResult = $oSysTemplate->parseHtmlByName('navigation_menu.html', array(
'main_menu' => $sMainMenu,
'sub_menu' => $sSubMenu
It works, but only when the url is Mysite.com/index.php
When the url is simply Mysite.com, the sub menu container is present, but the sub menu is not generated. Not a big deal because I can use a url rewrite to always add index.php The only caveat of a Rewrite, is that you need to use a 301 redirect to keep search engines happy. It would be nice to be able to avoid all this.
I just wondered if I was missing anything. I don't want site visitors to NOT see the submenu, if their entry point is mysite.com/