Add a 2nd menu in mobile template

GK User
Mon Mar 26, 2012 8:02 pm
Hello,

in the mobile template we can have a menu to choose in the template admin, plus a search button. There's plenty of room in the menu bar to add one more menu (or more). Is this possible? How can we achieve this? One menu is kinda little restrictive. 2 or more would be great.

Thank you.
User avatar
Expert Boarder

teitbite
Wed Mar 28, 2012 12:29 am
Hi

Wow. You always got an interesting questions :) I'm using mobile_top to set more menu modules but it will not display it in a way You mentioned. Let me ask programmers about it.
User avatar
Moderator

teitbite
Wed Mar 28, 2012 1:55 am
Hi

Got an answer:

The only way is added code directly in poper layout, for example in iphone.php

Code: Select all
<div id="gkNav">
         <div id="gkNavContent">
            <a href="#" id="gk-btn-menu" ><?php echo JText::_('TPL_GK_LANG_GK_MOBILE_MENU'); ?></a>
            <?php if($this->getParam('mobile_search', 0) == '1') : ?>
            <a href="#" id="gk-btn-search" ><?php echo JText::_('TPL_GK_LANG_GK_MOBILE_SEARCH'); ?></a>
            <?php endif; ?>
            <a href="#" id="gk-btn-nav-prev" class="button"><span><?php echo JText::_('TPL_GK_LANG_GK_MOBILE_BACK'); ?></span></a>
            <a href="#" id="gk-btn-nav-close" class="button"><span><?php echo JText::_('TPL_GK_LANG_GK_MOBILE_CLOSE'); ?></span></a>
         </div>



you can add anything that you want to #gkNav container even load module position but the is no other way right now to modify this part.
User avatar
Moderator

GK User
Wed Mar 28, 2012 1:58 am
Hello teitbite,

thanks for the trouble. This is very useful
User avatar
Expert Boarder

teitbite
Wed Mar 28, 2012 2:31 am
Hi

All thanks to bkrztuk who has answered that :)
User avatar
Moderator


cron