Close

How Can I Show a Module in an Article?

So you’ve found a great module but you want to place it directly in your content. No problem, it’s as easy as pie.

  1. Go into the module manager
  2. Configure as you would normally
  3. Type a unique item in the “Position” dropdown, e.g. “mycontentmodule”
  4. Publish the module
  5. Go into your article
  6. Place the cursor where you want the module to appear
  7. Type the following at that location {loadposition mycontentmodule}
  8. Save the article
  9. Refresh the page in the frontend and your module should appear just where you want it.

If the code looks familiar it’s because that is the standard way of loading plugins; Plugins are loaded in the format of {pluginname}, {pluginname [optional parameters]}, or {pluginname}text{/pluginname}. So, in essence what you are doing is calling Joomla’s built in module loader plugin and telling it to load all plugins that are published to that location.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.