The Loadposition Command
How to display Modules inside Articles
The image shown here illustrates a MODULE being displayed inside an Article using a Custom Position.
The Joomla! CMS enables you to create custom Positions in addition to the ones included with your website's Template.
The custom Positions may be created inside Articles and Category introductions.
And therefore presented in the Main Body of your website i.e. between the left and right sidebars.
For more information about Template Positions and Position Maps, visit the link below.
Two Alternative Methods
The Loadposition Command is one of two alternative ways of presenting Modules inside Articles using custom Positions.
The Loadmodule Command allows you to publish just one Module inside an Article.
Example: display the Login Module inside an Article instead of an existing template position.
2) Loadposition Command
The Loadposition Command allows you to publish any Modules you assign to a custom Position inside an Article.
Our preference is to use the Loadposition Command.
The Loadposition Command syntax we use to insert the above Module inside this Article looks like this:
In this example, the word Example is the name of the custom Position.
If you prefer to use the Loadmodule Command then simply interchange loadmodule for loadposition in the above syntax.
The Load Modules Plugin
The Content - Load Modules Plugin must be enabled for you￼ to be able to use either Command.
This plugin is enabled by default in a WYNCHCO Website Design - see image below.
How to use Loadposition Command
"To insert a module inside an article, use the command, as follows:
- Edit the articles where you want this module to appear and insert the text in the article at the place where you want the module."
1) Display a Module inside an Article
Select Extensions > Modules from the menu at the top of the website Dashboard.
Select a Module.
In the Module screen, look for the Position field under the Module tab.
Add the name of a custom Position to the field, making sure that you:
- enter a unique name,
- use only lower case letters without any spaces, and
- press the return (or enter) key on your device keyboard after doing so.
Example Custom Position
If you do not press the return (or enter) key then the custom Position will not be created.
When you add the Loadposition Command to an Article using curly brackets (as in the image below), it will call the Module you edited to the screen when the Article is viewed in the front end.
Image shows a Module displayed inside an Article
We show you how to insert a Text Bubble like the one shown in the above image in our separate article.
Work smarter not harder!
We coach, help and support managers of businesses and organisations across Cheshire, Manchester, Merseyside, North West England and the UK.