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

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

Leave a Reply

avatar
  Subscribe  
Notify of