Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • tamirzzz Friend
    #128369

    Hi folks,

    Haven`t figured out how to use a menu different than mainmenu. Can someone please help?

    Tnx,

    tamirzzz

    Menalto Friend
    #248735

    Which menu system are you using now?
    If you open up the index.php from the template yo have this code here on around line 32(this code below is set to Transmenu:

    $ja_menutype = 3; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Transmenu; 4: Dropline menu
    Now that you have found out which menu system in use i open up the file ja_transmenu.php located in the ja_teline folder, it looks like this:

    <?php
    /* ja_transmenu.php @copyright (C) 2005 Joomlart.com (formerly MamboTheme.com)*/
    defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
    global $ja_template_name;
    $japarams = new mosParameters('');
    $japarams->set( 'template', $ja_template_name ); // Change this value to correct template
    $japarams->set( 'absPath', $mosConfig_absolute_path . '/templates/' . $japarams->get( 'template' ) . '/ja_transmenu' );
    $japarams->set( 'LSPath', $mosConfig_live_site . '/templates/' . $japarams->get( 'template' ) . '/ja_transmenu' );
    $japarams->set( 'menutype', 'mainmenu' ); // Source of menu
    //Set style for menu
    $japarams->set( 'menu_style', 'horizontal' ); // Value: horizontal, vertical
    $japarams->set( 'menu_direction', 'down' ); // Value: down, right
    $japarams->set( 'menu_position', 'bottomLeft' ); // Value: bottomLeft, bottomRight, topLeft, topRight
    $japarams->set( 'p_t', '0' );
    $japarams->set( 'p_l', '0' );
    $japarams->set( 'class_sfx', '-trans' );
    $japarams->set( 'subpad_x', '0' );
    $japarams->set( 'subpad_y', '0' );
    $japarams->set( 'menu_images', '0' );
    $japarams->set( 'menu_images_align', '0' );
    include_once( $japarams->get( 'absPath' ) .'/ja-menulib.php' );
    global $my;
    $jamenu= new JAMenu ($database, $japarams);
    $jamenu->genMenu ();
    ?>

    Marked in red you can see this code:

    $japarams->set( 'menutype', 'mainmenu' ); // Source of menu
    And this is set to mainmenu, if you wanna use ex topmenu you can change it to this:

    $japarams->set( 'menutype', 'topmenu' ); // Source of menu

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

This topic contains 2 replies, has 2 voices, and was last updated by  Menalto 16 years, 6 months ago.

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