Override MainMenu?

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Sat Jan 14, 2012 12:11 am
Hello,

I want to use a custom menu-bar on the Music template. I put the menu module in position-7 because there isn't a module called mainmenu or main_menu or such as described in the module_positions file. What I have found is that the template appears to load the menu in the code.

Is there an easy way to put a custom menu-bar in the mainmenu position or do I have to edit the code?

Dean
User avatar
Junior Boarder

GK User
Sat Jan 14, 2012 12:13 am
The custom menu (additional to main menu) you can add by using default Joomla! module called mod_mainmenu and published on desired position.
User avatar
Platinum Boarder

GK User
Sat Jan 14, 2012 12:15 am
bkrztuk wrote:The custom menu (additional to main menu) you can add by using default Joomla! module called mod_mainmenu and published on desired position.


Correct. However I want it where the main menu is. I have QBar JomSocial menu and want this in place of the existing main menu.
User avatar
Junior Boarder

GK User
Sat Jan 14, 2012 4:14 am
I modified the template like so to include a mainmenu module position:

<?php if( $this->modules('mainmenu')) : ?>
<jdoc:include type="modules" name="mainmenu" title="Qbar"/>
<?php endif; ?>
</div>

And I threw mainmenu in the xml file. :D
User avatar
Junior Boarder


cron