rating rating rating rating rating rated by 0 please register or login to rate

Adding a Module into content in joomla

Attention: open in a new window. PDFPrintE-mail

Most every enhancement can be made with existing plugins. From code display (with codecitation) to an image slideshow (with sigplus) to flash video (with AllVideos). What to do when all you try to do is to include a module into your content area?

The joomla docs page comes to the rescue and explains:

To insert a module inside an article, use the command, as follows:

  1. 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.
  2. 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.
  3. 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.

The main addition that I would like to have here is to encapsulate the with a div class="xyz". This allows me to style my module more easily (especially since I might run the same module in a different position with other css styling_)

The other option to achieve the same thing is to give the module a module class suffix. If your module position is xhtml you will have now a surrounding div with the class name of moduletable_xyz.

Joomla Administration