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?
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 include modules in Content item (for Joomla 1.0.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.0.x only. For Joomla 1.5.x, please refer to How to include modules in Content item (for Joomla 1.5.x). Step 1: Create a new module positionFirst, we need to create a new module position where this module will be placed.
Step 2: Create the content pageWe will now create a content page for containing the module.
This is a test to include a module inside a content item.
{mosloadposition user201}
Step 3: Set up the moduleIn this step, we need to do some setting so that the module will appear in the module position.
Step 4: 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 content page with the embedded module (for example, it could be a slideshow module) will become the front page. Links
User reviews Average user ratings: 5.0 (from 3 users)Note: You have to be a registered member to leave a comment. Free registration here. |
||||||
| Last Updated ( Saturday, 29 March 2008 ) | ||||||
| < Prev | Next > |
|---|








April 18, 2008 6:30pm
Congratulations.
This article lead me to a second queestion: How to include modules in section / category description?
I already tested this method and don't works.
Thanks in advance.
April 19, 2008 7:56pm
Please add some examples of how to use HTML to position the module in content.
THanks
Rowby
http://www.rowby.com
April 20, 2008 12:48am
Hi Rowby,
1. Go to Site - Global Configuration, and set Default WYSIWYG Editor to "No WYSIWYG Editor".
2. Now when you edit the articles in content manager, you can use standard HTML tags such as <table> to position the module. An example is given below:
<table border=0>
<tr valign=top>
<td>
This is a test to include a module inside a content page.
</td>
<td>{mosloadposition user201}</td>
</tr>
</table>
Note: when you switch back to the default TinyMCE WYSIWYG Editor, you won't be able to see these HTML codes, even though they are still there.
There are some editors such as JoomlaFCK that allows you to easily switch between the HTML and WYSIWYG views. So if you have not installed it yet, you might want to give it a try.
Regards,
/kksou