Search code examples
joomla2.5

How to add a new module position in Joomla 2.5?


How to add a new module position in Joomla 2.5?

I want to add a new module position in one template, but I don't know how to do that.


Solution

  • To add new module position in your template, you need to add position in the templateDetails.xml and then in your index.php add that position where you want to show your module.

    And after that in module manager select that position you have added for that module and check it.

    For example:

    • In templatedetails.xml, locate the <positions></positions> start and end tags, then add inside:

      <position>newposition</position>
      
    • In index.php, locate the place in the template where you wish to put the new position and insert:

      <jdoc:include type="modules" name="newposition" />
      

    For more details you can check this link: