Joomla tutorials for beginners

How to display a module in a Joomla article?

Each Joomla module you can display on any module position available in a Joomla template. However, you can extend this limitation and display a module inside an article body. From this tutorial you will find out how to do this basing on our free JM Services template for Joomla 3.

Publish "Content - Load Modules" Joomla plugin

The plugin should be published by default, but you should make sure that it is, because this way you may avoid surprise during configuration.

In the back-end of your site go to:

Extensions -> Plugins -> Content - Load Modules

Content Load Modules Joomla plugin

Create Joomla article

To display a module in an article, you need the article. We have a separate tutorial on how to create an article that you may find helpful in this step.

This is how the article looks in our example:

Create Joomla article

In the article, you can use commands to display a module. Let's take a look at them.

"{"loadposition xxx"}"

This command allows displaying all Joomla modules from a specified module position. To use it you need to replace "xxx" with the module position name. This command is very useful if you want to display several modules from the same position in one place in an article.

In our example we have 4 modules published on the "sport-module-position" module position:

How to display a module in an article?

Display module in Joomla article

To display the modules in the article, you need to type the command in the article content: 

"{" loadposition module-position-name "}"

 

display module in Joomla article

  1. Choose where you want to place the modules and type the command
  2. Click on "Save & Close"

Now you should see the modules in your article. This is how it looks in our example:

How to display a module in an article?

This command allows to display a specific module. To use it you need to replace "xxx" with the module type and optionally with the module title after comma.

In our example we have a custom module that we want to display in the article:

How to display a module in Joomla article?

To display the module in the article, you need to type the command in the article content. In our example the module type is "mod_custom" and the module title is "The benefits of sports":

How to display a module in Joomla article?

  1. Choose where you want to place the modules and type the command
  2. Click on "Save & Close"

Now you should see the module in your article. This is how it looks in our example:

How to display a module in an article?

15 years in Joomla business

Create Your website with US
Use flexible Joomla templates.

INDICO S.C.

ul. Przyjaźni 9, 84-215 Gowino, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2021 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.