Drop Down menu on android?

GK User
Tue May 31, 2011 7:21 pm
I have set the template to default for both iPhone and other handheld devices hoping that it will show my website on these devices in the same way as it does on the web, the iPhone shows as I expected but on my htc phone using android the main menu is in the form of a drop down ? How do I get this to show as the normal mega menu please as I do not like the drop down menu style.

Many thanks
User avatar
Expert Boarder

teitbite
Wed Jun 01, 2011 2:28 pm
Hi

Strange it should be like You said. Aren't You using any other mobile template extention ?
User avatar
Moderator

GK User
Thu Jun 02, 2011 3:54 pm
Yes very strange and I am not using any other template, have set the backend as per my screenshot.

Must be a bug with the template?


Screen shot 2011-06-02 at 17.54.23.png
User avatar
Expert Boarder

GK User
Thu Jun 02, 2011 4:01 pm
This is how the menu looks on my HTC Android Phone....as you can see it is a drop down rather than the default menu button layout as it is on the iPhone which is set to default as well.



Screen shot 2011-06-02 at 18.01.31.png
User avatar
Expert Boarder

teitbite
Fri Jun 03, 2011 4:58 pm
Hi

I've reported the problem to our programmers.
User avatar
Moderator

GK User
Sat Jun 04, 2011 3:14 am
Thank Teitbite
User avatar
Expert Boarder

teitbite
Tue Jun 07, 2011 12:58 pm
Hi

Answer from programmer:

Problem is caused by fact that menu functions has own mobile check condition.
That's why the mobile menu is visible on the default layout. In general it isn't
a bug. For this user I recommend to change file gk.template.helper.php and
replace function getMenuType with below code:

function getMenuType () {
global $Itemid, $option;

$page_menus = $this->_tpl->params->get ('page_menus');
$page_menus = str_replace ("<br />", "n", $page_menus);
$pmenus = new JParameter ($page_menus);

$menutype = $pmenus->get($Itemid);
if (is_file(dirname(__FILE__).DS.'menu'.DS."$menutype.class.php")) return
$menutype;
$menutype = $pmenus->get($option);
if (is_file(dirname(__FILE__).DS.'menu'.DS."$menutype.class.php")) return
$menutype;
$menutype = $this->getParam(GK_TOOL_MENU, 'css');
if (is_file(dirname(__FILE__).DS.'menu'.DS."$menutype.class.php")) return
$menutype;
return 'css';
}
User avatar
Moderator

GK User
Tue Jun 07, 2011 1:37 pm
Perfect that did the trick...thanks
User avatar
Expert Boarder

teitbite
Tue Jun 07, 2011 3:39 pm
Hi

Glad I could be a messanger in this case :D
User avatar
Moderator


cron