Free Joomla Templates

Adding a Module Position in a Joomla 1.5 Template PDF Print E-mail

In this tutorial we will be learning on how to add a new module position to our joomla 1.5 template.

1. Add code to template PHP file.

For example, this would go in the index.php file in the template folder - or if you are adding it in an include file.

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

2. Add module name to templateDetails.xml

You then need to tell Joomla which module positions are available in this template. If you don’t do this step, then Joomla will not present the module position when giving you the option of where to place a module.

templateDetails.xml is in XML format. Within the <install> namespace, add this:

<positions>
<position>user6</position>
</positions>


If you already have positions listed, just add the <position>user6</position> part along with the rest of them.
Comments (2)Add Comment
0
Thanks
written by Joomla Development, May 15, 2010
Thanks for sharing a nice informative post
0
hi there
written by furqan, May 19, 2010
my question is this what are modules position basically if i am just copying a css file so how can i get what is the modulde and what is the module position

Write comment

busy
 
Follow us on Twitter

Joomla Links

RSS JOOMLA!

RSS Feed 

Private Subscribe

Access Downloads!
Private area with VIP
free tableless
joomla 1.5 templates.







Translate

English French German Italian Portuguese Russian Spanish

Joomla Templates

Whos Online

We have 2692 guests online