-
AuthorPosts
-
marian Friend
marian
- Join date:
- August 2007
- Posts:
- 24
- Downloads:
- 13
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 10, 2009 at 2:41 pm #146755It’s possibile to create a new position on top, before the logo to insert an horizontal menu module ?
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
December 10, 2009 at 4:01 pm #326305yes,of course
do you pay attention on seo? will somebody check my site about the seo,thanks:)marian Friendmarian
- Join date:
- August 2007
- Posts:
- 24
- Downloads:
- 13
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 14, 2009 at 11:14 am #326529Thank 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 Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
December 14, 2009 at 11:45 pm #326568Each 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 🙂
Danny1 user says Thank You to korb for this useful post
marian Friendmarian
- Join date:
- August 2007
- Posts:
- 24
- Downloads:
- 13
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 15, 2009 at 10:00 am #326641Hi,
But I don’t want to change the block ordering!
I need to add another one! different from “mainnav”korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
December 15, 2009 at 2:44 pm #326665In 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.
DannyDecember 26, 2009 at 12:43 pm #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 thxmusicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
December 27, 2009 at 1:18 am #327538Just 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 😉
1 user says Thank You to musicinme for this useful post
-
AuthorPosts
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