Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • marian Friend
    #146755

    It’s possibile to create a new position on top, before the logo to insert an horizontal menu module ?

    korb Friend
    #326303

    Sure it is possible. you can see also the mainav module position and styling to find some inspiration.
    Good Day,
    Danny

    chairmenmao Friend
    #326305

    yes,of course
    do you pay attention on seo? will somebody check my site about the seo,thanks:)

    marian Friend
    #326529

    Thank you korb,
    But I don’t know which file(s) do I edit and which code do I add?
    I want to add this position on top of the screen to add a kind of orizontal menu.
    Can provide an example?

    korb Friend
    #326568

    Each of the layouts have a separate file to manage the module positions. For instance default.php located in templates/ja_purity_ii/layouts. In your case you can simply change the block ordering in that file so the mainnav block should be above the header block.
    So for this example, change these lines


    <!-- HEADER -->
    <?php $this->loadBlock('header') ?>
    <!-- //HEADER -->

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

    to this code


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

    <!-- HEADER -->
    <?php $this->loadBlock('header') ?>
    <!-- //HEADER -->

    Good day 🙂
    Danny

    marian Friend
    #326641

    Hi,
    But I don’t want to change the block ordering!
    I need to add another one! different from “mainnav”

    korb Friend
    #326665

    In that case, open header.php block and create a new module position there, above the logo and make it width100% floating left adn the height you need, and then you can use the styling from bottom menu, or the styling from mainnav, as you wish.
    Danny

    daoes Friend
    #327520

    <em>@korb 156923 wrote:</em><blockquote>In that case, open header.php block and create a new module position there, above the logo and make it width100% floating left adn the height you need, and then you can use the styling from bottom menu, or the styling from mainnav, as you wish.
    Danny</blockquote>

    Hi korb,
    could u explain that? i mean the complete code thx

    musicinme Friend
    #327538

    Just try to use FireBug (if your browser is Firefox).

    Don’t know if you need something like new menu above standard menu, but you can try this:

    In templateDetails.xml add new position, i.e.

    <position>newposition</position>

    next put this code at the end layouts/bloks/header.php

    <?php if($this->countModules('newposition')) : ?>
    <div class="newstyle">
    <jdoc:include type="modules" name="newposition" />
    </div>
    <?php endif; ?>

    Then go to template.css and assign style to fit this position with the rest of header.

    div.newstyle {
    background: url(../images/grad1-mask.png) repeat-x top #444;
    border-top: 1px solid #666;
    line-height: 1;
    position: relative;
    z-index: 9;
    }

    But this is just a very simple example how to add new module position, so don’t swear me 😉

    daoes Friend
    #327541

    hi musicinme thats very helpful 🙂

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

This topic contains 10 replies, has 5 voices, and was last updated by  daoes 14 years, 11 months ago.

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