J3.x

J3.x:How do you add a new module position?

From Joomla! Documentation

Other languages:

Preface

The list of available positions where you can insert a module is controlled by the template you are using. It is possible to add new positions to a template.

Inserting the code

  • Open the index.php file of the Template you wish to edit
  • Locate the place in the Template where you wish to put the new position.
  • Insert
<jdoc:include type="modules" name="newposition"   />
  • The variable can be used (between existing
    tags) to replace an image by replacing the <img src="xxx" border="0" alt="">. Or By creating a new
    tag with its own class/id.
  • Open the Template's TemplateDetails.xml file and locate the <positions></positions> Start and end tags
  • Then add
<position>newposition</position>
  • Example
<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>newposition</position>
</positions>

Viewing the changes

To see all of the existing template locations in your browser edit the Template manager options.

Template manager options

Then append "?tp=1",to the end of your normal URL (for example, "http://www.yoursite.com/?tp=1").