You are Here: BlogTutorialHow do you add a new module position in joomla template?

How do you add a new module position in joomla template?

Published in Tutorial
Written by  11 May 2010
Rate this item
(9 votes)

how to add new module position in joomla template

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>

Kowshar

Kowshar Ahmed is the CEO and Founder of JoomShaper.com

Email This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Payment Methods

We are using secure 2Checkout payment method. Via 2checkout you can pay directly form your paypal as well as all major credit cards.

payment methods

Who's Online

We have 1187 guests and 43 members online