
Sometimes we need to create a new module position in a joomla template. In this tutorial we will let you know how to add a new module position in an existing joomla template.
At first goto your template directory and open the index.php file of your desire template with any text editor, we recommend Notepad++.
Find the suitable position where you want to put the new module position. Like you want to add a new module position after "breadcrumb" in the rhuk_milkyway template.To do this, find the line in the file "<div id="whitebox">" and before that
line insert following code "<div id="mynewposition">
<jdoc:include type="modules" name="mynewposition" />
</div>" as shown below:
<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<div class="clr"></div>
<div id="mynewposition">
<jdoc:include type="modules" name="mynewposition" />
</div>
Now open the file "/templates/rhuk_milkyway/templateDetails.xml" for editing and find the "" section of the file. Add the new entry for "mynewposition" as shown below:
<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
<position>mynewposition</position>
</positions>