test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • bydler Friend
    #129714

    The duplicate menu (of main menu) that is on top of the page above the JA Newsflash… I would like to have another one just like it (with sub menu that comes out below it) but under the JA newsflash. Is this possible? This would result in a menu – newsflash – another menu (and then page with columns and main page and all the rest).

    I suppose I could create another menu and hide the module but I have to make the connection to the duplicate menu somewhere – and also tell it where to show.

    Does anyone know how to do this? I would be very happy for any suggestions!

    /Lisa

    Sherlock Friend
    #253824

    Hi bydler !
    You can do it by way below :
    Open index.php file in templates/ja_iris folder , find following code section at about line 102 :


    <!-- BEGIN: TOP SPOTLIGHT -->
    <div id="ja-topsl" style="background: url(<?php echo $tmpTools->templateurl();?>/images/headers/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).'/images/headers/'); ?>) no-repeat right top;">
    <jdoc:include type="modules" name="top" style="xhtml"/>
    </div>
    <!-- END: TOP SPOTLIGHT -->
    <?php } ?>

    change to :


    <!-- BEGIN: TOP SPOTLIGHT -->
    <div id="ja-topsl" style="background: url(<?php echo $tmpTools->templateurl();?>/images/headers/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).'/images/headers/'); ?>) no-repeat right top;">
    <jdoc:include type="modules" name="top" style="xhtml"/>
    </div>
    <!-- END: TOP SPOTLIGHT -->
    <?php } ?>

    <!-- BEGIN: MAIN NAVIGATION -->
    <div id="ja-mainnav1" class="clearfix">
    <?php
    switch ($tmpTools->getParam(JA_TOOL_MENU)) {
    case 1:
    include(dirname(__FILE__).DS."/ja_Splitmenu.php");
    $jamenu->genMenu (0);
    break;
    case 2:
    case 4:
    include(dirname(__FILE__).DS."/ja_cssmenu.php");
    $jamenu->genMenu (0);
    break;
    case 3:
    include(dirname(__FILE__).DS."/ja_scriptdlmenu.php");
    $jamenu->genMenu (0, 0);
    break;
    }
    ?>
    </div>
    <!-- END: MAIN NAVIGATION -->

    bydler Friend
    #253838

    Oh, lovely, will try it as soon as i have a minute! Thank you!!

    bydler Friend
    #253856

    Now I have tried it and it sort of works – I do get the extra menu at the bottom of the newsflash. But the menu is the same as the one on top and when choosing a menu item that has a sub menu, the sub menu opens up below the menu on top instead of below my new menu.

    So how can I take this a step further – make this menu independent of the one on top (I suppose by tying it to another menu than main menu) and make it’s sub menu open immediate below.

    Thank you!

    /Lisa

    bydler Friend
    #253857

    I’m guessing the key is these lines in index.php:

    include(dirname(__FILE__).DS.”/ja_Splitmenu.php”);
    include(dirname(__FILE__).DS.”/ja_cssmenu.php”);
    include(dirname(__FILE__).DS.”/ja_scriptdlmenu.php”);

    And in those files they all refer to:

    $japarams->set( ‘menutype’, ‘mainmenu’ );

    I will try to fiddle aroud with this by duplicating the files mentioned above, renaming them and renaming the menu referred to inside. This is fun!! 😀

    bydler Friend
    #253871

    Ok, so now I have a separate menu below the JA newsflash (by changing in the files that I mentioned in the earlier post). I have also made some additions to ja-splitmenu/ja-splitmenu.css in order to correct the lines around the menu items.

    The only thing not fixed now is the sub menu that won’t show up in the new menu. For me that is not a problem (having sub menus on two “main” menus would just be confusing but i just thought I should write it here in case someone else wanted to try and do the same thing.

    @hainn84, thank you again for the input!

    /Lisa

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

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

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