Hi there,
What is the easiest way to use a 3rd party menu module instead of template main menu?
Thanks and Regards,
Arthur
<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMobileMenu">
<?php echo JText::_('TPL_GK_LANG_MOBILE_MENU'); ?>
<select onChange="window.location.href=this.value;">
<?php
$this->mobilemenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mobilemenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</select>
</div>
<?php endif; ?>
<?php $this->layout->loadBlock('logo'); ?>
<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMainMenu">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</div>
<?php endif; ?>
<?php if($this->API->modules('mobilemenu')) : ?>
<div id="gkMobileMenu">
<jdoc:include type="modules" name="mobilemenu" style="none" />
</div>
<?php endif; ?>
<?php $this->layout->loadBlock('logo'); ?>
<?php if($this->API->modules('sitemenu')) : ?>
<div id="gkMainMenu">
<jdoc:include type="modules" name="sitemenu" style="none" />
</div>
<?php endif; ?>
</div>
mobilemenu
sitemenu