EKM Tag: [ekm:productimage]
This tag is used to output all 5 of your product images on a product page. You can choose from 6 predefined layouts or create your own using HTML/CSS and the attribute tags.
This tag can only be used on the product page. Lightbox will only appear if the feature is installed in the backend of your EKM shop.
- Tag Information
- Image Styles
- Nesting This Tag
[ekm:productimage][/ekm:productimage]
[ekm:productimage]
width='auto';
height='auto';
constrain_proportions='yes';
opentype='popup';
images_layout='[image_1]<br /> [image_2][image_3][image_4][image_5]';
extra_images_width='auto';
extra_images_height='auto';
extra_constrain_proportions='yes';
[/ekm:productimage]
width='200'';
Specify the maximum width you would like your main image to be. This will not be exceeded.
If you would like the image width to be limited, but the height to remain unlimited then leave the height
attribute set to auto
.
200px
height='200'';
Specify the maximum height you would like your main image to be. This will not be exceeded.
If you would like the image height to be limited, but the width to remain unlimited then leave the width
attribute set to auto
.
200px
constrain_proportions='yes'';
Specify whether or not you would like to constrain images to a maximum ratio. If the width and height are both set to the same value, the system will scale the images down until either the height or width (which ever hits first) hits this value and stops scaling
Both width and height must be the same value
If this value is not included in the tag the system will default to yes
opentype='popup'';
Specify how you would like the images to be displayed when clicked.
If you have the lightbox or product image zoomer installed this attribute will be ignored.
image_layout='popup'';
Choose a predefined image layout or define your own using the attribute tags.
This attribute allows you to specify your own image layout on the product page with HTML.
extra_images_width='auto'';
Specify the maximum width you would like your extra images to display at.
extra_images_height='auto'';
Specify the maximum height you would like your extra images to display at.
extra_constrain_proportions='yes'';
Specify whether or not you would like to constrain images to a maximum ratio. If the width and height are both set to the same value, the system will scale the images down until either the height or width (which ever hits first) hits this value and stops scaling.
Both width and height must be the same value
If this value is not included in the tag the system will default to yes
This tag has a number of predefined layout styles. Below are examples for each of the styles and how they will look on your website.
The EKM system allows for some tags to be nested within other tags.
When nesting this tag you do not need to make any alterations.
[ekm:if]
iftype='EQUALS';
ifvalue='1';
ifvalue2='1';
ifthen='[ekm:productimage][/ekm:productimage]';
ifelse='';
[/ekm:if]