How to include modules in Content item (for Joomla 1.5.x) |
| Written by kksou | ||||||
| Saturday, 29 March 2008 | ||||||
|
This is in reponse to Ssnobben's posts titled "Having a slideshow module in main page" and "Slideshow on frontpage"
What's even more amazing is that you can use any of the HTML elements to position the embedded module precisely! In this example, I used a standard HTML table to position the module to the left of the text. How this is done?Embedding a module inside a content page is a Joomla "feature". You do not need the DirectPHP plugin to enable this. Ssnobben has rightfully pointed out you need to use something like "{loadmodule mod_fpslideshow}". So below are the complete steps to achieve this. Note that the steps below applies to Joomla 1.5.x only. For Joomla 1.0.x, please refer to How to include modules in Content item (for Joomla 1.0.x). The steps are slightly easier for Joomla 1.0.x. Step 1: Set up the moduleLet's first create a module for use with this example.
Step 2: Create the content pageWe will now create a content item for containing the module.
This is a test to include a module inside a content page.
{loadposition user201}
Step 3: Let's test itNow load the article. Did you see the "Main Menu" appearing inside that article similar to the following?
Note: If you wish to put this as the front page, go to Menu Item Manager - Main Menu, create a menu item linked to this content page, then move it to the first item. The page with the embedded module (for example, it could be a slideshow module) will become the front page. Links
User reviews Average user ratings: 4.0 (from 12 users) |
||||||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin













May 05, 2008 10:03pm
Excellent article! I would like to know how to enbed the code to another template like siteground-j15-14. I was looking where to put the code and I canŽt do it. I found a template different in the templateDetails.xml file.
May 12, 2008 12:58pm
OK, Good!
But, tell me. How do you do that in a different template like siteground-j15-14.
May 12, 2008 6:57pm
Hi Jaime,
Have just managed to grab hold of a copy of this siteground-j15-14 template to test it out. Yes, the structure of the templateDetails.xml file is different from that of the default rhuk_milkyway template.
Anyway, I've rewritten this article to show you another easier method which will work with this siteground-j15-14 template.
Please follow the steps outlined above and let me know if it works for you.
Regards,
/kksou
May 12, 2008 7:36pm
Thanks Kksou!
I will try to follow all the steps and IŽll tell you if it works.
October 06, 2008 6:29am
clear, simple and powerfull article
October 25, 2008 2:11pm
Very nice article thanks for passing on your knowledge. I appreciate it.
December 25, 2008 1:53pm
Hi,
I tried to implement a simple module and insert it to content as you described above in joomla 1.5.
But I have a problem. Module creates a table with 2 columns but I couldn't make the table centered to page. It is always aligned to left.
Any advise?
January 13, 2009 2:09pm
how do I get the background to now be yellow?
http://www.hianetwork.com/my-account.html
January 13, 2009 5:27pm
Hi Jason,
Please double check your css.
If you do a view source, the login module make use of <div> and <table>. The original css definition is defined such that this appear ok with transparent background in module position.
However, when you shift it to inside an article, I believe the css is defined such that tables appear with yellow background and a black bar on the left. Just do a quick check in your css. It should be quite easy to see which css definition is that.
When you find it, you can either change the css, or the login module.
Regards,
/kksou
January 13, 2009 6:07pm
You are the man.. That was it. BTW using the "Web Developer" add-on for firefox tells you the css file and the exact line.
Thanks for the help
August 06, 2009 6:15am
i follow your introduction to add a latestnews module in section description part, the module is shown after the description,but the module did not show in a , only embed the , so the style is different from it in user1 position. so what should i do to make it look the same as it in user1?
August 07, 2010 8:14pm
mmmm???
Note: You have to be a registered member to leave a comment. Free registration here.