We help IT Professionals succeed at work.

Adding module to main content area

savsoft
savsoft asked
on
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
Comment
Watch Question

Panagiotis Sweb developer - designer

Commented:
Add a new position under the content area and put it there

Author

Commented:
that i was am not able to get.. please instruct me with steps for it.....
Thanks
web developer - designer
Commented:
         <div id="....some id... ">           
                  <jdoc:include type="modules" name="your_position" style="xhtml" />
         </div>

and then put the module to the new position (your_position)
Savsoft,

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:
<position>your_position</position>

Hope this helps.
Regards
Easynow
Abhijeet RananawareWeb & Mobile Developer

Commented:
Simple Way will be use a plugin to embed module in article.ie content

http://extensions.joomla.org/extensions/core-enhancements/embed-a-include/6958

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"/>
</div>

Add css to template.css

#custompos{
Css goes here

}

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

Regards,
Abhijit