Menu Not disabling?

GK User
Tue Nov 25, 2014 5:20 pm
Hi there, I switched the Menu Template to disable mode so I could use an accordion style by Maximenu in the Menu_top poaition but the template menu is still visible even after turning it off. Is this a possible bug?

Many thanks.
User avatar
Gold Boarder

GK User
Wed Nov 26, 2014 5:30 pm
Hello,

You're right - please replace in the layouts/default.php file the following fragment:

Code: Select all
<?php
               $this->asidemenu->loadMenu($this->API->get('menu_name','mainmenu'));
               $this->asidemenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
            ?>


to:

Code: Select all
 <?php if($this->API->get('show_menu', 1)) : ?>
<?php
         $this->asidemenu->loadMenu($this->API->get('menu_name','mainmenu'));
         $this->asidemenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
   ?>
<?php endif; ?>


We will fix this issue in the next update.
User avatar
Administrator

GK User
Fri Nov 28, 2014 2:27 pm
Thanks a lot mate :)
User avatar
Gold Boarder


cron