JoomlaCT Blog

Welcome to JoomlaCT User Group Blog. Very often I will come across some tidbit of information that I think would be interesting or helpful to the JoomlaCT community, and I will share that with you. I invite you to comment and share your discoveries as well. If you would like to be a Blogger on this site, that can be arranged. Just get in touch with me via the Contact page.

How to put a module in an article


Notice: Undefined offset: 1 in /home/joomlact/public_html/administrator/components/com_easyblog/includes/post/post.php on line 3658

Ever have a situation where you want to put a module in an article? Maybe a login form or a menu? Well, in Joomla 3 there is a core plug-in that provides for this.

To use it, create your module. Do not choose a position.  Make sure the module is published. Page assignment is irrelevant since the position isn't on any page, it won't show up even if you set it to all pages.

Save the module, and navigate to the article that you want it to show up in. Place your cursor where you want the module placed and below the content box is a Module button. Click that and navigate to the module you just created. Save and go to the page on the front end and refresh the page. You should see your module in the article. That is all there is to it!

Want to do the opposite? Put an article in a module?

That is not part of the core of Joomla, but there is a free extension that makes it easy.

Click here to read a tutorial.

 

5134 Hits
0 Comments

How to see the module positions in a template

It used to be, in Joomla 1.5, that if you wanted to see the module positions you can either click on the Preview button in the Template editable area, or add ?tp=1 to the end of your URL to see the different module positions from the front-end of your website.

However, for security purposes,since Joomla 2.5, you must enable this option in the back-end first. If you are in the Template Manager> Template tab, you will see the Preview link is disabled.

To enable it:

  • log in to the back-end
  • go to Extensions>Template Manager
  • Click on Options in the upper right corner of the page
  • Set Preview Module Positions to Enabled
  • now the Preview links are enabled from the back-end. Click on it to see the module positions of the template you are using
  • To see them from the front end, add ?tp=1 to the end of your URL and you will see an overlay of the modules on your template
  • It is possible some modules are not visible because if a template defines those module positions as conditional on there being modules enabled in that position, it may not show up.

It is recommended that after you are done with development, you disable it again.

10858 Hits
0 Comments