| Adding a Module Position in a Joomla 1.5 Template |
|
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>
If you have more questions on this tutories, pelase contact at www.joomlaexpert.info PSD to Joomla |






















