How do you put the module inside an article

In this tutorial will answer the most frequently asked question on our support - How to add the module in Article?

Joomla core provides three ways to do that: loadposition, loadmodule and loadmoduleid. The plugin "Content - Load Modules" must be enabled.

Syntax:

  • {loadposition position}
  • {loadmodule mod_type,the title}
  • {loadmoduleid moduleId}

1. loadposition

To insert a module inside an article, you publish the module to a position and load that position in the article as follows:

  1. Create a module and set its position to myposition. myposition can be any value and should be unique.
  2. Assign the module to All the Menu Items. This will make sure that it always appears, no matter how the visitor got to the article. The module will not show unless you put the command to load the module in an article.
  3. 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.

2. loadmodule

An alternative to "{loadposition XXX}" is the "{loadmodule YYY}" variation which is handled by the same plugin.

In this case the plugin looks for the first module who's type matches the string 'YYY'. So you could load a "mod_login" module by placing {loadmodule login} in your text.

3. loadmoduleid

Since Joomla! version 3.9.0 an alternative to {loadposition XXX} and {loadmodule YYY} is the variation {loadmoduleid ZZZ} which is handled by the same plugin.

In this case the plugin looks for the module who's id matches the number 'ZZZ'. So you could load the module with id = 200 by placing {loadmoduleid 200} in your text.

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. Also, the name of the position should be all lowercase. CamelCapitalization will fail.