CatalogItemImageControl
CatalogItemImageControl displays a featured item image and, when enabled, item-detail images with a zoom interface.

Configurable properties
| Property | Default | Valid values or format | Effect |
|---|---|---|---|
AlignString | Empty string ("") | Sets image alignment. | |
EnableZoomBoolean | false | true, false | Controls the item-detail image zoom interface. |
ExpandedWindowTextString | Empty string ("") | Sets expanded-window text. | |
FallbackToCategoryPhotoBoolean | true | true, false | Controls category-photo fallback. |
FileBaseString | "ComConfig.CustomImagesFolderPath" | Sets the image file base. | |
Item_IDInteger | Not specified | Sets the item identifier. | |
PhotoAltTextString | Empty string ("") | Sets image alternative text. | |
PhotoCssClassString | Empty string ("") | Sets the image CSS class. | |
PhotoLocationString | "Photo1" | Sets the photo location. | |
PhotoWidthInteger | 0 | Sets the photo width. | |
PictureNotFoundCssClassString | Empty string ("") | Sets the missing-image CSS class. | |
PictureNotFoundImageUrlString | "~/images/photo-not-found.png" | Sets the missing-image URL. | |
StockCodeString | Empty string ("") | Sets the item stock code. | |
UseOnlyCanonicalLinksBoolean | true | true, false | Controls canonical image-link use. |
UsePhotoString | "Photo1" | "Photo1", "Photo2" | Selects the photo to use. |
ZoomWindowTextString | Empty string ("") | Sets zoom-window text. |
SitePages.config example
The following example loads CatalogItemImageControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: Align, ExpandedWindowText, Item_ID, PhotoAltText, PhotoCssClass, PictureNotFoundCssClass, StockCode, ZoomWindowText.
<Control src="CatalogItemImageControl.ascx"
EnableZoom="false"
FallbackToCategoryPhoto="true"
FileBase="ComConfig.CustomImagesFolderPath"
PhotoLocation="Photo1"
PhotoWidth="0"
PictureNotFoundImageUrl="~/images/photo-not-found.png"
UseOnlyCanonicalLinks="true"
UsePhoto="Photo1" />
Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.
Inherited properties
CatalogItemImageControl inherits shared conditions from CyberStoreBaseControl.