Menu Item as Module Position doesn't show on Mobile menu

GK User
Fri Sep 25, 2015 1:55 pm
Hi, I have setup a submenu item named Residencias en CABA as K2 category. With Menu Params (GavickPro) I set Select Positions to load module position menu1 which loads that module position just ok in the desktop version.

The issue comes when the mobile menu gets activated, in the select dropdown, there is no Residencias en CABA menu item, I think because it was used to load a module position, but even if the module position must not be shown in the mobile menu (that's ok), as this menu item is an actual component link, I really want to have it in my mobile menu dropdown.

How can I solve this?

You can check the issue here https://it.mgscreativa.com.ar/residencias/index.php take a look at menu CIUDAD DE BS. AS.
User avatar
Expert Boarder

GK User
Mon Sep 28, 2015 8:57 pm
I guess this cannot be done, but I'll ask one of our devteam members to take a look and write back.
User avatar
Moderator

GK User
Mon Sep 28, 2015 9:53 pm
Thanks @Cyberek, remember that I don't want the module to display in the mobile menu, just the parent item to display as a normal menu item, as it does in normal menu, take a look at Residencias en CABA
User avatar
Expert Boarder

GK User
Wed Sep 30, 2015 9:43 am
I guess the only workaround I can think of right now is to add this position twice.
But let's wait for dev response, maybe they know a better way.

Also, could you please describe it more specific, with screenshots etc - comparing what you have now and what you would like to have (or you can simply provide desired mobile menu structure compared to current one).
User avatar
Moderator

GK User
Tue Oct 06, 2015 6:53 pm
Hello, I'm waiting the solution as well.
Why in other templates such as University there is no such problem?
How to solve the problem in this template? I need to show up the menu item (module position style) in mobile. That's crucial for my project please,
Thanks,

Rob
User avatar
Expert Boarder

GK User
Wed Oct 07, 2015 1:57 am
Just to get things clear. I need to have a menu item that points to a joomla component, and that's used to display a module position, to appear in the mobile menu, but of course, I don't pretend to have my module rendered there, I just need the menu item to display.

Thanks!
User avatar
Expert Boarder

GK User
Mon Oct 12, 2015 11:27 am
Sorry, but it is not easily possible.
You might try to edit this file:
templates/gk_storefront/lib/menu/GKHandheld.php
and on the 123 line:
Code: Select all
if(!isset($tmp->content) || (isset($tmp->content) && stripos($tmp->content, '<jdoc') === FALSE)) {

move the las statement to 156 line, but its pretty much hacking and might not work.
User avatar
Moderator

GK User
Mon Oct 12, 2015 6:29 pm
I've done what you suggest but it doesn't work. Can you please give us the right code or send us a GKHandheld.php that properly show the menu item also in mobile resolution?

I've just finished a nice dropdown menu layout with images that I've showed to my client and he want them. Now I can't say that I've to trash all that work.

I don't mind if the mobile menu will change aspect, you can provide the code of other template where it works, but it is a serious template issue and need to be solved please.

Gavick Pro states HERE that this is a template feature, so please help us to solve it, we will really appreciate it,

Best,

Roberto
User avatar
Expert Boarder

GK User
Tue Oct 13, 2015 6:22 pm
Cyberek wrote:Sorry, but it is not easily possible.
You might try to edit this file:
templates/gk_storefront/lib/menu/GKHandheld.php
and on the 123 line:
Code: Select all
if(!isset($tmp->content) || (isset($tmp->content) && stripos($tmp->content, '<jdoc') === FALSE)) {

move the las statement to 156 line, but its pretty much hacking and might not work.


Hi @Cyberek, thanks for the hint, but I was hoping a more elaborate reply with maybe a fixed file attached. If you can, provide it so I can test.

Thanks!
User avatar
Expert Boarder

GK User
Fri Oct 16, 2015 10:28 am
Sorry, but this is only info I got from our devteam :(.
User avatar
Moderator

GK User
Sat Oct 17, 2015 1:04 pm
Ok, hope your team get a workaround soon, because i think there's no issue on having this behaviour in the mobile menu...
User avatar
Expert Boarder

GK User
Mon Oct 19, 2015 5:35 pm
Sadly, I don't think so :(. This is pretty old template and such behave was never "Designed" for it :(.
User avatar
Moderator

teitbite
Fri Nov 06, 2015 6:50 pm
Hi

Sorry I was asked to join conversation.

I think the only way will be to disable using mobile menu, force using the regular menu all the time than make this menu responsible. Unfortunately this is a customisation. Not a small one:( We do not support that, sorry.
User avatar
Moderator

GK User
Sat Nov 07, 2015 1:28 pm
Ok, please have in mind this issue for future releases...
User avatar
Expert Boarder

GK User
Sat Nov 07, 2015 2:55 pm
Sadly this is pretty old template and if it is being updated - then only bug fixes related with new Joomla or VM are included, no new functionalities, and your request would be treated as such. Only thing I can do is to leave a comment to our devteam (what I already did).
User avatar
Moderator

GK User
Sat Nov 07, 2015 3:21 pm
Great, that's what I mean...
User avatar
Expert Boarder

GK User
Fri Nov 13, 2015 4:22 pm
Man, Roberto Baggio will save your life! What the F***k I can't believe that maybe I found a so easy solution. I was almost trashing the project.
I'll tell ya what it worked for me:

1) Go to templates\gk_storefront\layouts\default.php
2) Replace this code:
Code: Select all
<?php if($this->API->get('show_menu', 1)) : ?>
                 <div id="gkMainMenu" <?php echo $this->API->get('menu_type', 'classic') == 'overlay' ? 'class="gkMenuOverlay"' : 'class="gkMenuClassic"'; ?>>
                         <?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->get('show_menu', 1)) : ?>
                 <div id="gkMobileMenu" class="gkPage"> <i id="mobile-menu-toggler" class="fa fa-bars"></i>
                     <label for="mobileMenu"><?php echo JText::_('TPL_GK_LANG_MOBILE_MENU_LABEL'); ?></label>
                     <select name="mobileMenu" id="mobileMenu" 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; ?>


WITH THIS CODE:
Code: Select all
<?php if($this->API->get('show_menu', 1)) : ?>
                        <div id="gkMobileMenu" class="gkPage"> <i id="mobile-menu-toggler" class="fa fa-bars"></i>
                            <select id="mobileMenu" onChange="window.location.href=this.value;" class="chzn-done">
                                <?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 if($this->API->get('show_menu', 1)) : ?>
                        <div id="gkMainMenu" <?php echo $this->API->get('menu_type', 'classic') == 'overlay' ? 'class="gkMenuOverlay"' : 'class="gkMenuClassic"'; ?>>
                         
                                <?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; ?>




I hope that it will work for you as well, and in this case you can donate on my IBAN code: 3463637..... ahahah I'm joking!
Enjoy !

PS: Cyberek !!!! WhatsUPPPPPP!!!!! :-)
User avatar
Expert Boarder

GK User
Sat Nov 14, 2015 11:31 am
@robertobaggio I have modified your post a little bit to make it more readable.

PS... Where do I know you from?
User avatar
Moderator


cron