-
AuthorPosts
-
November 12, 2013 at 4:39 pm #192192
Hello,
I want to add a new custom module and its position in the template ja rave.which files have changed?
I want to add this:<jdoc:include type=”modules” name=”mymodul”/>
in the CSS file:
}
# {MyModule
** width: 300px;
** height: 300px;
** position: absolute;
** top: 200px;
** left: 500px;
}Thank you for your help
Tomaspavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 12, 2013 at 4:45 pm #512004Hi
Could you post a screen shot of your new module position ?
Where exactly you want to add it ?
November 12, 2013 at 5:00 pm #512008Thank you for the quick reply!
Here is my example.
I am always adding these things to file index php and css template in the folder templates / rave / css / template.css
Now in this template doesnt work 🙁
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 12, 2013 at 5:27 pm #512012Hi
You cannot add Module 2 and 3 because are external to the template – you can use 3rd part extensions for that anyway
About instead module Module 1 , you already have a position there is called top-panel
About Module 4 you can do in this way
1) Open this file pluginssystemjat3jat3base-themesdefaultblocksheader.php and change it as shown below
[PHP]<?php if($this->countModules(‘search’)) : ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”search” />
</div>
<div id=”ja-module4″>
<jdoc:include type=”modules” name=”module4″ />
</div>
<?php endif; ?>[/PHP]Add the section for module4
2) Open this file templatesja_ravetemplateDetails.xml and add in the Positions section the new position
<position>module4</position>
3) In this file templatesja_ravecsstemplate.css add the module4 section
#ja-module4{
width: 300px;
height: 300px;
position: absolute;
top: 200px;
left: 500px;
}AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by pavit 11 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
New module and position in template
Viewing 4 posts - 1 through 4 (of 4 total)