Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • astrophel Friend
    #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 Friend
    #418874

    Hi,
    Do you still need help with this?

    Viet Vu

    astrophel Friend
    #418921

    Yes please,

    this seems to be an issue for some others on the forum as well. It may help as well.

    Thanks

    jooservices Friend
    #418924

    Hi, 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 Vu

    astrophel Friend
    #418931

    Let 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 Friend
    #419065

    As 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 Vu

    jooservices Friend
    #419070

    The 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 Vu

    astrophel Friend
    #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 Friend
    #419196

    Hi
    So, in this case please let’s me some little bit explain exactly which method you are looking for ?: )
    Thank you for understand.
    Viet Vu

    jooservices Friend
    #419325

    Hi
    Btw i’m going update this topic as SOLVED. For another issue please create another thread 🙂
    Thank you
    Viet Vu

Viewing 10 posts - 1 through 10 (of 10 total)

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