The objective is off adding 2 positions under the TOP posisiton.

1- Edit the main.php file
Folder : templates > ja_purity_ii > layouts > blocks > main.php
Add the following lines of code under content-top :
<div id="topmod">
<?php if( $this->countModules('topgauche') ): ?>
<div id="topgauche">
<jdoc:include type="modules" name="topgauche" style="JArounded" />
</div>
<?php endif; ?>
<?php if( $this->countModules('topdroite') ): ?>
<div id="topdroite">
<jdoc:include type="modules" name="topdroite" style="JArounded" />
</div>
<?php endif; ?>
</div>
Here we choose the JArounded style (modules with rounded corners). But we can also choose the JAxhtml style.
2- Edit the template.css file
Folder : templates > ja_purity_ii > css > template.css
Add the following lines :
#topgauche {
float: left;
width: 49%;
}
#topdroite {
float: right;
width: 49%;
}
#topmod { height: 350px;}
We will adapt the height of #topmod according to the height of the chosen modules.
3- Edit the templateDetails.xml file
Folder : templates > ja_purity_ii > templateDetails.xml
Add the following lines :
<position>topgauche</position>
<position>topdroite</position>
4- Publication of the modules
It does not more remain than to publish modules wished in position topgauche and topdroite.
5- Implementation for a layout " rounded "
Here we created those 2 positions for the default layout. For a "rounded" layout, you have to edit the main-rounded.php file.
















