test
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • plieka Friend
    #381239

    I would like to use more than 1 Megamenu on my website
    The main menu as normal

    an Alternate Megamenu with options specific to Virtuemart (a kind of quick menu)

    How do I alter the template to assign a specific Megamenu to a specific position?

    thanks

    thuanlq Friend
    #382465

    Hi Plieka,

    To use specific Megamenu on specific category, please do as following:
    – Open the file “index.php” in the folder “templatesja_zeolite_ii”, find code:


    //Main navigation
    $ja_menutype = $tmplTools->getMenuType();
    $jamenu = null;

    Replace to:


    //Main navigation
    $ja_menutype = $tmplTools->getMenuType();
    $jamenu = null;
    $itemId = JRequest::getInt("Itemid");
    if($itemId == 30){
    $tmplTools->setParam("menutype", "topmenu");
    }

    Note: this example i will view megamenu with “topmenu” on page Itemid = 30,
    for example link:http://mysite.com/index.php?option=com_content&view=article&id=27&Itemid=30
    – To set mega menu to specific position, please try do as following:
    + Open the file “header.php”, in the folder “templatesja_zeolite_iilayoutsblocks”, find code:


    <!-- MAIN NAVIGATION -->
    <?php $this->loadBlock('mainnav') ?>
    <!-- //MAIN NAVIGATION -->

    Copy this code and paste to some where in the file “templatesja_zeolite_iilayoutsdefault.php”, or any block files in the folder “templatesja_zeolite_iilayoutsblocks”.

    Regards,

Viewing 2 posts - 16 through 17 (of 17 total)

This topic contains 17 replies, has 11 voices, and was last updated by  thuanlq 13 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum