• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Adding module to main content area

I have develop a new module for joomla . I have succesfully installed it and now i want that it should be positioned where the content area should be look like.

So How to do this

Thanks In Advance
1 Solution
Panagiotis Sweb developer - designer Commented:
Add a new position under the content area and put it there
savsoftAuthor Commented:
that i was am not able to get.. please instruct me with steps for it.....
Panagiotis Sweb developer - designer Commented:
         <div id="....some id... ">           
                  <jdoc:include type="modules" name="your_position" style="xhtml" />

and then put the module to the new position (your_position)
Dean OBrienCommented:

To slightly extend upon what panagiotiss said:

You need to edit your template(s). To do this go to Template Manager -> select template -> select "edit html" (joomla 1.5 - 1.6).

Within here you need to look for the line which specifies where the main content area is:
<jdoc:include type="component" />

And then add your new module position below this, i.e.:

<jdoc:include type="component" />
<jdoc:include type="modules" name="your_position" />

Once you have done this, you also need to edit the templateDetails.xml file. You need to add the line:

Hope this helps.
Abhijeet RananawareWeb & Mobile DeveloperCommented:
Simple Way will be use a plugin to embed module in article.ie content


After installing using following syntax in editor

{module [65]}
where 65 is the modules id.

Second method will be adding custom position to the template,

Add following code in index.php

<div id="custompos">            
                  <jdoc:include type="modules" name="custompos"/>

Add css to template.css

Css goes here


Add <position>custompos</position> to templateDetails.xml

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now