test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • kicr Friend
    #126731

    Hey guys,

    nice and clean template, but I don’t know why you have placed the split menu in this way. I would prefer, if the subcategories would be displayed at the left side for the split menu.

    Greets
    KiCR

    Hung Dinh Friend
    #242555

    The default J! menu also puts the submenu on the left so if any one want to place submenu on the left he can use default menu.

    However, if you want to move JA submenu to the left , just cut this code in index.php

    <?php if ($hasSubnav) { ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1,1); ?>
    </div>
    <?php } ?>

    and paste after this line (line 169)

    <div id="ja-col1">

    kicr Friend
    #242559

    Hello Hung,

    thanks for your answer. I cut and pasted the code, but the result could be better.

    Please have a look at. You’ll see the submenu when you click on Systeme. The links Mediacenter, Test1 and Test2 should be in a vertical list like the Mainmenu on the left side. When the submenu works, mainmenu will be unpublished at left position.

    Khanh Le Moderator
    #242646

    Yeb, it should be better :D.
    Moving to under ja-col1, and modify it to:


    <?php if ($hasSubnav) { ?>
    <div class="moduletable_menu">
    <h3><?php echo $jamenu->getParentText(1);?></h3>
    <?php $jamenu->genMenu (1,1); ?>
    </div>
    <?php } ?>

    You could even make it better by modifying file ja_menus/Splitmenu.class.php. Add this function to JA_Splitmenu class:


    function beginMenuItems($pid=0, $level=0){
    if($level > 0)
    echo "<ul class="menu">";
    else
    echo "<ul>";
    }

    kicr Friend
    #242676

    Hello Khanh,

    thank you, it works after I corrected your code :p


    function beginMenuItems($pid=0, $level=0){
    if($level > 0) {
    echo "<ul class="menu">";
    } else {
    echo "<ul>";
    }
    }

    I attached the two modified files. You only have to unzip the zip file to your joomla root and overwrite the files. Please be patient, backup the following files before you do this:

    templates/ja_edenite/ja_menus/Splitmenu.class.php
    templates/ja_edenite/index.php

    Regards
    KiCR


    kicr Friend
    #242691

    One more question:

    When I unpublish all modules on modul position left, the splitmenu will not be shown. How can I change the code, that the splitmenu will shown even when no modules are published on left position?

    Khanh Le Moderator
    #242738

    <blockquote>thank you, it works after I corrected your code </blockquote>
    Yeah, there’s a typing mistake in my post 😮

    <blockquote>When I unpublish all modules on modul position left, the splitmenu will not be shown. How can I change the code, that the splitmenu will shown even when no modules are published on left position?</blockquote>
    In file ja_vars_1.5.php, you will see this block of code:


    # Auto Collapse Divs Functions ##########
    $ja_left = $this->countModules('left');
    $ja_right = $this->countModules('right');

    if ( $ja_left && $ja_right ) {
    $divid = '';
    } elseif ( $ja_left ) {
    $divid = '-fr';
    } elseif ( $ja_right ) {
    $divid = '-fl';
    } else {
    $divid = '-f';
    }

    Move to end of this file (before ?>) and change to:


    # Auto Collapse Divs Functions ##########
    $ja_left = $this->countModules('left') || $hasSubnav;
    $ja_right = $this->countModules('right');

    if ( $ja_left && $ja_right ) {
    $divid = '';
    } elseif ( $ja_left ) {
    $divid = '-fr';
    } elseif ( $ja_right ) {
    $divid = '-fl';
    } else {
    $divid = '-f';
    }

    kicr Friend
    #243078

    Thanks! I’ve updated the files…


    shultman Friend
    #302894

    Thanks, this has saved lits of time for me. 🙂

    Question:
    Do I need to create an extra set of classes to style the submenu???
    Or which css classes are used for styling the submenu on the left side?

    /Sune

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

This topic contains 9 replies, has 4 voices, and was last updated by  shultman 15 years, 8 months ago.

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