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

H

How Can We Help?

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

  • 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

About the author

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.

About Author

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.

Follow Me