• 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
0
savsoft
Asked:
savsoft
1 Solution
 
Panagiotis Sweb developer - designer Commented:
Add a new position under the content area and put it there
0
 
savsoftAuthor Commented:
that i was am not able to get.. please instruct me with steps for it.....
Thanks
0
 
Panagiotis Sweb 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)
0
 
Dean OBrienCommented:
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
0
 
Abhijeet RananawareWeb & Mobile DeveloperCommented:
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
0
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