Where is MainMenu position ?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Nov 02, 2013 6:39 pm
Reply with quote
Report this post
Hi, I try to change the default menu of CloudHost with another type of menu based on MegaMenu system. I not able to enable the new menu module; I have tried put it in menu1, menu2, etc.. positions but nothing appears. In the module position schema : http://demo.gavick.com/joomla25/cloudho ... -positions I see the MainMenu position but when I try to insert in it a module I'm not able to find this position. How can I enable it ?
Thanks in advance
Andrea
User avatar
Fresh Boarder

GK User
Sun Nov 03, 2013 12:26 pm
Reply with quote
Report this post
MainMenu position is not a standard module position - it is reserved for build in template menu system.
If you would like to completely remove build in menu system and replace it with another, you would need to edit file /layouts.default.php and place custom module position instead of "PLACE CUSTOM MODULE HERE" text:
Code: Select all
       <header id="gkHeader">
          <div>
             <div class="gkPage" id="gkHeaderNav">                       
                <?php $this->layout->loadBlock('logo'); ?>
                PLACE CUSTOM MODULE HERE
                <?php if($this->API->get('menu_type', 'aside') == 'classic') : ?>
                       <?php if($this->API->get('show_menu', 1)) : ?>
                        <div id="gkMobileMenu" class="gkPage"> <i id="mobile-menu-toggler" class="icon-reorder"></i>
                            <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 if($this->API->get('show_menu', 1)) : ?>
                        <div id="gkMainMenu" class="gkPage">
                                <?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 else : ?>
                    <i id="aside-menu-toggler" class="icon-reorder"></i>
                    <?php endif; ?>
             </div>
          </div>
          
            <?php if($this->API->modules('header')) : ?>
            <div id="gkHeaderMod" class="gkPage">
               <jdoc:include type="modules" name="header" style="<?php echo $this->module_styles['header']; ?>" />
            </div>
            <?php endif; ?>
       </header>


Now, you can disable use of build in menu system in template settings or manually get rid of it in the code.
On how to add custom module position you can read here:
http://www.gavick.com/documentation/joo ... -position/
User avatar
Moderator

GK User
Sun Nov 03, 2013 12:27 pm
Reply with quote
Report this post
You could also try "header" position as it is implemented already.
User avatar
Moderator

GK User
Fri Nov 15, 2013 5:12 am
Reply with quote
Report this post
I have the same issue!

there are menu1 - menu10 why not just one.

I went to the template manger and on the module manager.

Not of the positions work!
User avatar
Fresh Boarder

GK User
Sun Nov 17, 2013 11:28 am
Reply with quote
Report this post
Please bare in mind that some of the module positions are not from our template - but this is how Joomla works - it might be confusing, so please read carefully what module position belongs to which template.
User avatar
Moderator


cron