Adding a new module position in Joomla 2.5 or 3.x Template

The available module positions on your Joomla 2.5 or 3.x website is controlled by the template that you are using. If you would like to add a position to the template that didn't come out of the box, you can add a new position. We are going to outline below the correct steps to take to add a new custom position to your Joomla 2.5 or 3.x template.

Adding the code

Add the below code into the index.php file of the template that needs to have the new position.

<jdoc:include type="modules" name="position_name"   />

Open the TemplateDetails.xml file and add a position as a child element of the <positions></positions> tags.

<position>position_name</position>

Below is what the positions tags will look like:

<positions>
         <position>debug</position>
         <position>position-0</position>
         <position>position-1</position>
         <position>position-2</position>
         <position>position-3</position>
         <position>position-4</position>
         <position>position-5</position>
         <position>position-6</position>
         <position>position-7</position>
         <position>position-8</position>
         <position>position-9</position>
         <position>position-10</position>
         <position>position-11</position>
         <position>position-12</position>
         <position>position-13</position>
         <position>position-14</position>
         <position>position-15</position>
         <position>position_name</position>
</positions>

This is all there is to it. Next add any styles that you desire and you are done.

Print Email