Joomla!

How to add a new module position in a Joomla! 1.5 template

Written by Ian Carnaghan · 29 sec read >
  • Open your template file where you would like to place the module position
  •  Add the following code to the template file
    <?php if ($this->countModules('customPosition')) : ?>
    <div id="customPosition"  >
    <jdoc:include type="modules" name="customPosition" style="xhtml"  />
    </div>
    <?php endif; ?>

    NOTEcustomPosition is the name/identifier for the new module position

  • Now you need to tell Joomla! which module positions are available within the template, to do this open the templateDetails.xml file within the root folder of your template and add the following code within the <install> namespace
    <positions>
       <position>customPosition</position>
    </positions>

    NOTE: You would probably only need to add <position>customPosition</position> to the template between the <positions> tag

Last Updated On March 30, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of