The alt tag will be part of what is output when you use the template tag [-- PRODUCT.MoreInformationGraphic --].
You can see exactly what will be output by that tag by going to the Images screen, select the image , click Edit Images and in the text box under Image Tag the exact output for that particular image will be displayed. Note that if the image is suppose to be resized then the Image Tag code under the particular size will be used.
If that code is not what you want to use then you will have to create all of the html in your template to display the image. The 2 template tags that
might help you to create the html are:
[-- PRODUCT.MoreInformationGraphic --] Returns a full <img src> tag for the product More Info Page graphic. This is what you would see using the steps above.
[-- IMAGE Product.MoreInformationGraphic --] Returns the path and file name of the product More Information Page graphic, relative to the store’s media directory.
The template help doesn't mention whether the remove_html parameter can be used with the [-- PRODUCT.MoreInformationGraphic --] but you might try [-- PRODUCT.MoreInformationGraphic remove_html --] which will probably work and would output the same information as the [-- PRODUCT.MoreInformationGraphic --] only without the leading <img src=" and the ending "> . This allows you to add additional attributes to the image when the store is published.
I recommend that you do some simple experiments to see what is going to work for you. Create a product template that has just the image fields defined so that you can see what the tags are outputting. Assign that product template to a product that has the image you are wanting to work with assigned to it. Then publish the page the product is on to see what the out put looks like in the html source.
Here is a simple example of a product template to get you started.
- Code: Select all
[-- DEFINE PRODUCT --]
# This define is used to control how the products will look
PRODUCT.MoreInformationGraphic tag = [-- PRODUCT.MoreInformationGraphic --]<p>
PRODUCT.MoreInformationGraphic with remove_html = [-- PRODUCT.MoreInformationGraphic remove_html --]<p>
IMAGE Product.MoreInformationGraphic = [-- IMAGE Product.MoreInformationGraphic --] <p>
[-- END_DEFINE PRODUCT --]