You are here: HomeTeam BlogAdministratorHow do you put a module inside an article?

How do you put a module inside an article?

By Administrator on
Administrator
Administrator has not set their biography yet
User is currently offline
Jun 28 in Blog

For many occasions I have had the need to do things in Joomla CMS when designing web pages, but because of my limitation in knowledge, I end up getting frustrated.

Joomla is a great CMS and all the information can be found in their docs. All you have to do is search for it - of course, you have to know what to look for.

Just some weeks ago somebody asked me if was there any way someone could put a module inside an article. The first thing I did was to go to Joomla and looked for it.

Here is my findings:

You will usually want to associate modules with articles in some way. The modules are allocated to module positions and the module positions appear somewhere on the Web page as determined by the template. However, it is sometimes useful to have a module actually embedded within the article.

To insert a module inside an article, use the { loadposition xx } command, as follows:

  • Create a module and set its position to any value that doesn't conflict with an existing template position. You can type in the position value instead of selecting it from the drop-down list. For example, use the position myposition.

  • To do that, you will need to log in into your admin section and then click extensions; from the drop down menu select Module Manager, as displayed below:



  • Assign the module to the Menu Items that contain the articles that you want the module to show in. You can also just assign the module to all Menu Items.




  • Edit the articles where you want this module to appear and insert the text { loadposition myposition } in the article at the place where you want the module.
Creating the actual position:


Our final step will be to assign the module in the article...


Note that this only works when the Content - Load Module plugin is enabled.
If this plugin is disabled, the text { loadposition myposition } shows unchanged in the article.

Tags: Inserting module inside an article
Hits: 268
Rate this blog entry
2 votes