j-training.jpg
Make a new module position

Here's a straightforward way to create a new module position in a Joomla Template that uses divs as containers


  1. Choose an unassigned module number or name.
    (Not sure what modules have already been assigned - see our tip on viewing module positions)
  2. Find the spot where you want to place the module in the index.php template file.
  3. (In other words go to the backend (administrator end) of Joomla and navigate to Site / Template Manager / Site Templates.
  4. Choose your template then click the html option. In html code, areas or divisions of the webpage are defined and placed between <div>  and </div>.
  5. Then within the div, place this code  - 
<?php if (mosCountModules('userPUTNAMEHERE')>0) { ?>
                 <?php mosLoadModules('userPUTNAMEHERE',-2); ?>
     <?php } ?>

or for Joomla 1.5

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

(The if statements are optional)