-
AuthorPosts
-
September 29, 2011 at 7:18 pm #169104
I have been searching through forums and code, and it seems to me this should be very feasible considering the seperate layouts/css/php for mobile and desktop layouts.
I would like to assign a different menu ID to mainnav for iphone/mobile, preferably through an override, but will gladly edit core T3 or Template files.
I expect it could be changed in /plugins/system/jat3/jat3/base-themes/default/blocks/iphone/mainnav.php to simply call menu ID #2 instead of the menu set up in the template.
Any help would be greatly appreciated, I’ve been messing with it for quite a while without progress.
Thanks in Advance
Ron
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 12, 2011 at 6:44 pm #418874Hi,
Do you still need help with this?Viet Vu
October 13, 2011 at 12:01 am #418921Yes please,
this seems to be an issue for some others on the forum as well. It may help as well.
Thanks
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 13, 2011 at 12:07 am #418924Hi, good morning.
Would you mind give me detail of explain ? I’m not really clearly your trouble ?
May i’ve you live code as sample ?
Thank you
Viet VuOctober 13, 2011 at 12:26 am #418931Let me try to explain simply.
in T3 you can set what menu to use (suppose MAIN MENU), it is then used for both the Desktop Site’s menu and the iPhone site’s menu.
What I would like to do is have MAIN MENU on the desktop site, and another menu for the mobile (for example we could create a menu called MOBILE MENU).
The site is not currently live, but you can see this on any current T3 based site (I’de be most interested in Joomla! 1.7)
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 13, 2011 at 12:59 pm #419065As I understand, you want to display another menu for handheld layout, let’s say Menu ID = 2, regardless the menu assigned in template manager, let’s say Menu ID = 1. If so, please allow me a time for digging up the code to check if it’s possible.
Thanks
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 13, 2011 at 1:14 pm #419070The default Menu Type is often “mainmenu”, but if you want to change it to “topmenu” for handheld devices, open the mainnav.php file.
Find this code at top:
defined('_JEXEC') or die('Restricted access');
Add after:
T3Parameter::_setParam ('menutype', 'topmenu');
Then clear cache to get affected.
P/s: Go to Menu Manger look at Type column to get exact menu type value.
Thanks
Viet VuOctober 13, 2011 at 7:54 pm #419151🙂
Thanks, much appreciated.
This works…. adding this broke a bunch of other things, but that is related to the way Joomla! works with menus.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 14, 2011 at 1:13 am #419196Hi
So, in this case please let’s me some little bit explain exactly which method you are looking for ?: )
Thank you for understand.
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 14, 2011 at 1:21 pm #419325Hi
Btw i’m going update this topic as SOLVED. For another issue please create another thread 🙂
Thank you
Viet Vu -
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by jooservices 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum