How to Randomize Images on Your Joomla Website - dummies

How to Randomize Images on Your Joomla Website

By Seamus Bellamy, Steve Holzner

Joomla’s Random Image module, as its name implies, shows a random image every time the page on which it appears is refreshed. It is installed as part of your Joomla installation’s sample content. This module is great to use if you want to display some kind of product on your site. A new image appears each time a visitor comes to the site.

To set the Random Image module, follow these steps:

  1. Choose Extensions→Module Manager to open Module Manager.

  2. Click Random Image to open the module’s administration page.

    Because the Random Image module doesn’t appear on any pages by default, you may think that it isn’t enabled by default. But that’s not true: It is enabled. It has no menu assignment, however, so the module never appears by default.

  3. In the Menu Assignment pane, click the drop-down checklist labeled Module Assignment and select a module assignment.

  4. In the Menu Selection list, select the pages on which you want the Random Image module to appear.


  5. Turn your attention to the Basic Options pane. In the Image Type and Image Folder text boxes, enter the file extension and location of the images you want to use.

    If you want to use the .jpg images that are already in the Joomla images directory, for example, enter jpg in the Image Type text box and the folder where the images can be found in the Image Folder text box.

    You can set the image to act as a clickable by entering the URL you’d like the image to lead to into the field marked — you guessed it — Link. Finally, you can even choose to control the dimensions of the image once it is posted to your site by entering the image’s width and height according to pixel count.


  6. Click Save or Save & Close.

  7. View your site.

Just because a module is set to open in a particular location on an assigned page in one instance, doesn’t mean that you can’t change it up to suit your needs. Depending on the template you have chosen to use on a given page, you may have a ton of options open to you.

You can set the Random Image module up to display image content on the right hand side of the screen, as opposed to the Random Image’s default position setting, which would place the content more centrally. Don’t be afraid to experiment!