Introduction
Missing images can cause a mess in your template's layout, breaking the structure of your homepage's modules. This happens because the modules lack a backup image to display when the article's intro image is missing.
There are several plugins available in the Joomla! repository designed to deal with this issue by supplying fallback images for empty article slots. However, these plugins are set up to function triggered by the 'onContentBeforeDisplay' event. If the module doesn't trigger this event, these plugins won't work. Simply put, without the 'onContentBeforeDisplay' trigger, these plugins become useless.
The U Default Picture plugin ensures no image field is left vacant by inserting a fallback image directly into the database at the onContentBeforeSave event:
- If an image has been assigned to the article's category, that image is used as the fallback image for the article's image fields.
- If no image has been assigned to the article's category, a global, site-wide image is used as the fallback for the article's image fields.
These fallback image settings can be either used together or individually, for the Intro Image and Full Article Image, as per the plugin settings which are quite straightforward.
U Default Picture
- Version:
- 1.0.1
- Developer:
- Mircea Rusu
- Last updated:
-
Jul 21 2023
1 year ago - Date added:
- Nov 15 2022
- License:
- GPLv2 or later
- Type:
- Free download
- Includes:
- p
- Compatibility:
- J3 J4
Share