Add a new module position to your Joomla! 1.5 template

To start,check the available module positions of your current template using an url like this:

http://www.mywebsite.com/index.php?tp=1

If you’re not brave,and Just because everything could happen,create a backup copy of your template folder

Now we start!

1 –Go to:Extensions / Template manager/ Site Templates,select your template and click on Edit HTML.

2 -Add the following code where you want to place the new position (remember:only Joomla 1.5):

<?php if ($this->countModules('position-name')):?>  <div> <jdoc:include type="modules" name="position-name" style="xhtml" /> </div><?php endif;?>

Change the name (position-name) to whatever you like.

3 –Go to Template Manager / Module Positions and add the name of the new position.

4 –Then open the file templatedetail.xml (it is in the folder templates/your-template-name),scroll down towards the bottom,where all the others are,and declare the position:

  <positions> <positions>....</positions> <positions>position-name</positions> <positions>....</positions> </positions>

5 –DONE! Your new module position is ready and available…

Leave a Reply

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong>