There are many times in Joomla! when you may want to insert a module into a content item. This is a common desire with aesthetic modules such as MoeScroll or AnyCode.
To place a module inside of a Joomla Article, the Joomla! team has provided us with the { loadposition positioname } function. What this function allows, is for you to specify a specific module position that will be shown wherever you like in any article. Below are the steps required to create a new module position and have it show up in your article. Please note that this method can be used to insert virtually any module into virtually any Joomla! article.
- Setting up the new module position
- Login to the administrator panel of your Joomla! website (ie: http://www.yourdomain.com/administrator/ )
- Click on the menu item 'Extensions' then 'Module Manager'
- If you already have an instance of the module setup that you would like to use, click on the title of the instance to edit the module parameters. If you do not have an instance of the module ready, click on the 'New' icon in the top right of your screen then select 'MoeScroll Advanced for Joomla 1.5' on the next screen.
- Now we need to set the module to a new unused position. To achieve this, click on the drop down box next to the 'Position' option. Your cursor will now be flashing inside the box. Go ahead and delete the text that is currently in the box, then type in a new, distinct, module position. For this example we will use the position name 'article_1'.
- Set the 'Menu Assignment' parameter to 'All'. ( Note: it will only show up on the page with your article because it is the only place where the article_1 module position is called )
- Setup the rest of the parameters that you would like for the module and click the 'Save' icon.
- Setup the article to show the module
- Still in the administration panel, click on the 'Content' menu item and then 'Article Manager'.
- Now click on the name of the article that you would like the module to appear in, or click 'New' to create a new article to work with.
- Find the spot in the article where you would like the module to show up and insert the following code:
{ loadposition article_1}
***Note: You must remove the space between the { and loadposition - The last step is to simply save the article and refresh the page on the front-end of your site.
Things to check if the module is not showing up:
- Double check that the 'Menu Assignment' parameter in the module's settings is set to 'All'
- In the Administration Panel, click on 'Extensions' -> 'Plugin Manager'. Ensure that the 'Content - Load Module' plugin is enabled (published).
- Clear your site's cache and refresh the page. ( Administration: 'Tools' -> 'Clear Cache' )