-
AuthorPosts
-
October 9, 2010 at 11:58 am #155110
I would like to create a new module position in JA Rasite. At the top I want to add some icons for links. I checked out some of the other answers for this, but didn’t see what seemed to be the answer.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 11, 2010 at 10:19 am #358435<em>@csrountree 197634 wrote:</em><blockquote>I would like to create a new module position in JA Rasite. At the top I want to add some icons for links. I checked out some of the other answers for this, but didn’t see what seemed to be the answer.</blockquote>
Ok, can you pls provide me the snapshot with rough sketch of your desired position, i ‘ll make this for you
October 12, 2010 at 3:32 pm #358643Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2010 at 7:41 am #358917now, you open the file: templatesja_rasitelayoutsblocksheader.php and find the following code:
[PHP]
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>
[/PHP]
replace:
[PHP]
<div class=”ja-topleft”>
<jdoc:include type=”modules” name=”topleft” style=”JAxhtml” />
</div>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>
[/PHP]and add the following code into the template.css file
.ja-topleft{
position:absolute;
right:0;
top:12px;
height:50px;
width:200px;
background:red;
}when done, the template has a new position named “topleft”
October 19, 2010 at 6:17 am #359486I followed your steps, but I believe you are leaving a bit out. I did not find the first bit of code in the Header.php. It was in the MainNav.php. After placing it up and about an hour of tinkering with the Header/MainNav/and a few others, I am going to turn it back over to you. Also, It did not show up on the Admin Site to select from the Modules Page. Help Please. :-[:confused:
Thanks,
-Chris-October 19, 2010 at 5:59 pm #359585Also, I was able to use ?tp=1 to see the position on my website. I moved the position to where I want it, but even with z-index of 99 the top menu bar is ontop of the new module.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 20, 2010 at 3:21 am #359623you open the file: templates/ja_rasite/css/template.css and find the following code:
#ja-mainnav {
background: url(../images/mainnav-bg.gif) repeat-x left top;
font-family: Tahoma, Verdana, Tahoma, sans-serif;
height: 46px;
line-height: 1;
padding-top: 10px;
position: absolute;
top: 0;
z-index: 900;
}replace:
#ja-mainnav {
background: url(../images/mainnav-bg.gif) repeat-x left top;
font-family: Tahoma, Verdana, Tahoma, sans-serif;
height: 46px;
line-height: 1;
padding-top: 10px;
position: absolute;
top: 0;
z-index:10;
}October 20, 2010 at 6:00 pm #359727Ok, still having trouble getting the z-index to work. Tried a few things, but not working out.
Last thing is I need it to show up in the Module Positions (admin) when editing and enabling a module.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 22, 2010 at 4:15 am #359989ok, you try to remove the z-index:10;
in this block#ja-mainnav {
background: url(../images/mainnav-bg.gif) repeat-x left top;
font-family: Tahoma, Verdana, Tahoma, sans-serif;
height: 46px;
line-height: 1;
padding-top: 10px;
position: absolute;
top: 0;
z-index:10;
}if the issue is not fixed ,pls let me know admnistrator account, i will check and resolve this
October 22, 2010 at 8:18 am #360029ok, I removed the z-index and it seems to be working! Yay!!!
Last item up for bid, where to place module: topleft in the admin modules for selection. I can just type it in, but wanted to add it to the list.
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 2 voices, and was last updated by csrountree 14 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Create new Module Position
Viewing 10 posts - 1 through 10 (of 10 total)