Dynamic Source
One of the most outstanding features of the iMagnifier is the ability to use dynamic sources to display the content. This short tutorial will guide you through all the configuration steps needed to do this.
Dynamic sources allow you to use a single iMagnifier module instance for an unlimited number of articles with different content. For example:
You have different products, they are listed on your site as single Joomla articles. Now you have to insert an image with magnifier function for each of these products. This may take hours. Not with iMagnifier!
Setup Overview
- Create a custom field for the preview image (Type Media)
- (optional) Create a custom field for the zoomed image (Type Media)
- Create a new module instance of the iMagnifier
- Select dynamic mode in the module options
- Select your Custom Field for Preview & HiRes Image
- Edit your articles, select the respective pictures for the preview and zoomed image
- Place iMagnifier at the desired module position / inside the article
Setup Step by Step
Create a custom field for the preview image
First we have to create the required Custom Fiels (it doesn't matter if your Joomla articles already exist or if you still have to create them). To do so open the Fields Manager in Joomla backend and click on the New button. The Fields Manager can be found in the Main Menu: Content > Fields.
Use the Button on the Top left to Add a new Field. As field type we choose "Media" which allows us to select later an image with the media manager in the article editor. (Note: If you use the JCE Media Manager you can also select the JCE File Browser (media) field).
Sidenote: In general all field types that stores the image path as value are supported. 3rd Party Plugins that supports responsive viewing of images or compression cannot be used with iMagnifier.
Above you see as an example the creation mask of my custom field for the Preview / Main Image. In this tutorial we don't care about the column on the right. But if you know how it works you can of course add the field to a group and / or assign it to a category, but in our example we leave everything on default.
Maybe Important:
When using Custom Fields in Joomla! Articles those fields normally also got rendered in the article view itself. If you don't want this, you can disable this in the field settings. Click on the tab Options and select
Do not automatically display for the option Automatic Display