Add a CW Content Image module to any page(s) on your site
- In the Joomla administrator, go to Extensions > Modules and click "New" to add a new module.
- Select the CW Content Image module type.
Parameters Explained
- Default Image: Select or upload an image that will be displayed if no category or article image is available to be displayed.
- Default Image Alt Text: Enter text to be included in the img alt attribute if the default image is used.
- Category Page Options: Set the options for this module when renedered on a com_content category page view.
- Category Page Image: Select which image, if any, to display on the category page.
- No Image: Do not display an image.
- Category Image: Display the category image.
- Default image: Display the default image set above in the module parameters.
- Category Page No Image: Select which image, if any, to display on the category page if there is no category image.
- No Image: Do not display an image.
- Default image: Display the default image set above in the module parameters.
- Article Page Options: Set the options for this module when renedered on a com_content article page view.
- Article Page Image: Select which image, if any, to display on the article page.
- No Image: Do not display an image.
- Article Image: Display the full article image.
- Category Image: Display the category image. If no category image exists, the default image will be displayed.
- Default image: Display the default image set above in the module parameters.
- Article Page No Image: Select which image, if any, to display on the article page if there is no full article image.
- No Image: Do not display an image.
- Category Image: Display the category image. If no category image exists, the default image will be displayed.
- Default image: Display the default image set above in the module parameters.
- Tag Page Options: Set the options for this module when renedered on a com_tags tag page view.
- Tag Page Image: Select which image, if any, to display on the tag page.
- No Image: Do not display an image.
- Tag Image: Display the tag full image.
- Default image: Display the default image set above in the module parameters.
- Tag Page No Image: Select which image, if any, to display on the tag page if there is no tag full image.
- No Image: Do not display an image.
- Default image: Display the default image set above in the module parameters.
- Other Page Options: Set the options for this module when renedered on all other pages.
- Other Pages Image: Select which image, if any, to display on all other pages.
- No Image: Do not display an image.
- Default image: Display the default image set above in the module parameters.
Creating a Template Override
If you want to override the standard layout, you have to create a template override as follows:
- Copy
/modules/mod_cw_contentimage/default.php
to/templates/{YOUR_TEMPLATE}/html/mod_cw_contentimage/default.php
* - Modify as needed
* Note: If you want to have multiple template overrides, you can create multiple copies of default.php
, but give it different names. Each new override will be available in as an option in the Alternate Layout parameter in the Advanced parameter tab in the module.