test
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • ccgeelong Friend
    #149606

    Hi, I have a question that someone may be able to help with.
    I want to add a module position next to the top main menu. I know that the code I need to edit is in the file:

    templatesja_uranilayoutsblocksmainnav.php

    I have tried adding the following:

    <jdoc:include type="modules" name="ja-newmenu" style="JAxhtml" />

    after this code:

    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>

    I have done the other usual things to add a new module position but for some reason adding something next to the top mainmenu does not seem to work.

    Can someone please help? Thanks

    Anonymous Moderator
    #336757

    Hi ccgeelong

    Could you send me your live url via PM so that i could have a closer look on the issue?

    i think you have to add some codes in css file. But it is so hard to debug if i don’t have your website.

    ccgeelong Friend
    #336780

    Sorry I can’t send you the url to my site as it is internal only….. it is our school intranet.

    The menu I want to change is pretty much the same as the stock urani template so you could just test on a default template installation and it will work on mine.

    I have attached a screen shot of my homepeage anyway.

    Thanks for the help!!!


    1. site
    Anonymous Moderator
    #336853

    Hi ccgeelong

    I am sorry but it is so hard to debug. what is the module which you are using in this position?

    If it is not the default of joomla, please send me this module, your configuration. I will check it at my local.

    ccgeelong Friend
    #336857

    Hi thanks for following up with me.

    Yes it is the default module from the Urani template. The only thing I did to the menu was move it from the top of the page to just below the ja-header.

    You could use a default installation for debugging and it would be almost the same as my site.

    Thanks a lot!!


    1. ja_urani_user_guide
    Anonymous Moderator
    #336888

    Hi ccgeelong

    To solve this issue, please open templates/ja_urani/css/template.css file, find following code section:

    /* Main Nav ---*/
    #ja-mainnav {
    background: url(../images/grad1-mask.gif) repeat-x left top #444;
    border-bottom: 1px solid #050505;
    border-top: 5px solid #050505;
    line-height: 1;
    position: absolute;
    z-index: 999;
    top: 0;
    }

    and change to:

    /* Main Nav ---*/
    #ja-mainnav {
    background: url(../images/grad1-mask.gif) repeat-x left top #444;
    border-bottom: 1px solid #050505;
    border-top: 5px solid #050505;
    line-height: 1;
    position: relative;
    z-index: 999;
    top: 0;
    }

    – find:

    #ja-wrapper {background: url(../images/body-bottom.jpg) repeat-x left bottom; min-height: 450px; position: relative; padding-top:56px; }

    and change to:

    #ja-wrapper {background: url(../images/body-bottom.jpg) repeat-x left bottom; min-height: 450px; position: relative; }

    Hope it helps

    ccgeelong Friend
    #337009

    Hi I have sent you a PM. Thanks a lot

    ccgeelong Friend
    #337503

    <em>@JA Developer 170264 wrote:</em><blockquote>Hi ccgeelong

    To solve this issue, please open templates/ja_urani/css/template.css file, find following code section:

    /* Main Nav ---*/
    #ja-mainnav {
    background: url(../images/grad1-mask.gif) repeat-x left top #444;
    border-bottom: 1px solid #050505;
    border-top: 5px solid #050505;
    line-height: 1;
    position: absolute;
    z-index: 999;
    top: 0;
    }

    and change to:

    /* Main Nav ---*/
    #ja-mainnav {
    background: url(../images/grad1-mask.gif) repeat-x left top #444;
    border-bottom: 1px solid #050505;
    border-top: 5px solid #050505;
    line-height: 1;
    position: relative;
    z-index: 999;
    top: 0;
    }

    – find:

    #ja-wrapper {background: url(../images/body-bottom.jpg) repeat-x left bottom; min-height: 450px; position: relative; padding-top:56px; }

    and change to:

    #ja-wrapper {background: url(../images/body-bottom.jpg) repeat-x left bottom; min-height: 450px; position: relative; }

    Hope it helps</blockquote>

    I am not sure you understand what I am trying to do.

    If you look at my site here: http://203.208.94.241 you will see that I have added a new menu next to the existing main menu. It is called NEW MENU.

    When I put this menu in that position, it breaks my ‘main_menu’ menu.

    So what I want to do is have a second menu next to the existing top main menu so that I can customize what is seen for various user groups.

    I think that the coding needs to be done in the file located at templatesja_uranilayoutsblocksmainnav.php

    But I just can’t seem to figure it out. I have added extra module positions before but this seems a lot more difficult.

    Am I on the right track or what?

    Please please help…….

    vitormarques Friend
    #337703

    Hi ccgeelong

    Please change the Menu Style (in Module Parameters) to a List. That way it’s going to be easier to make just like main menu.

    Best regards

    ccgeelong Friend
    #337726

    <em>@vitormarques 171279 wrote:</em><blockquote>Hi ccgeelong

    Please change the Menu Style (in Module Parameters) to a List. That way it’s going to be easier to make just like main menu.

    Best regards</blockquote>

    OK I made it a list. What do I do next?

    vitormarques Friend
    #337750

    Ok now you have to follow a few steps:

    01. Go to file “/templates/ja_urani/css/colors/xmas.css” (line 227)
    change this ” #ja-cssmenu ” to this ” #ja-cssmenu, #ja-mainnav ul.menu ”

    02.Go to file “/templates/ja_urani/css/menu/moo.css” (line 24)
    change this ” #ja-cssmenu ” to this ” #ja-cssmenu, #ja-mainnav ul.menu ”

    03.Go to file “/templates/ja_urani/css/menu/moo.css” (line 36)
    change this ” #ja-cssmenu li ” to this ” #ja-cssmenu li, #ja-mainnav ul.menu li ”

    04 Go to file “/templates/ja_urani/css/colors/xmas.css” (line 281)
    change this ” #ja-cssmenu li a ” to this ” #ja-cssmenu li a, #ja-mainnav ul.menu li a”

    Please try this and when it’s finished please something so that I can see what’s happening.

    Best regards

    ccgeelong Friend
    #337797

    Thanks buddy.

    I have done that. Is that what you expected to happen?

    vitormarques Friend
    #337800

    I’m sorry but you must have done something wrong with css.
    Would you be comfortable sharing your ftp account details so that I can see what’s wrong? I’m from Joomlart support team and you can pm your details.

    Thanks

    ccgeelong Friend
    #338155

    Thanks anyway Victor. I appreciate you trying to help.

    It just seems too complicated to do this with the Joomlart template. I had success adding another module position in which I inserted another menu but I did this with another template that was not made by Joomlart. So I think the biggest problem is the Joomlart template. It does not lend itself well to a modification like this.

    I ended up turning to a third-party extension named HxD MooMenu. I added it to a new module position and then replaced the line in the mainnav.php file so that my new menu appeared instead of the default menu.

    It works well. So after a week of messing around on forums and submitting a number of tickets to the Joomlart support center, I have fixed the issue with a third-party extension.

    vitormarques Friend
    #338279

    Hello

    Well not all templates are designed and developed assuming that it could have 2 menus stick together.
    Well in the end I’m glad you get this working.

    Best regards

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

This topic contains 15 replies, has 3 voices, and was last updated by  vitormarques 14 years, 9 months ago.

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