Not sure — I’d have to look at the product database API to see if there is a parameter controlling this.
Ok, I’ve had a look. The ‘medium’ image is returned. The web librarian code is hard-coded to use the ‘small’ image for the thumbnail image. I suppose I can change the code to provide a choise of images to use.
Ok, I made a new release with the JavaScript updated. If you do a Lookup Item, all three image sizes, small, medium, and large (if available) are displayed and any of the three can be inserted as the thumbnail.
Thread Starter
dryice
(@dryice)
Great! Thanks.
I made an additional change to the admin.css to
#aws-formframe {
width: 100%;
height: 750px;
I made it bigger to see the entire image, just felt less cramped IMHO.
Thanks again for the change.
Thread Starter
dryice
(@dryice)
Also for my own reference when an update is released and those always using any other size but small, I made a change at line 227 – 231 of AWSFunction.js
var smallimage = item.getElementsByTagName('SmallImage')[0];
if (smallimage != null)
{
var smallimageURL = smallimage.getElementsByTagName('URL')[0].childNodes[0].nodeValue;
win.WEBLIB_InsertThumb(smallimageURL);
changed to:
var mediumimage = item.getElementsByTagName('MediumImage')[0];
if (mediumimage != null)
{
var mediumimageURL = mediumimage.getElementsByTagName('URL')[0].childNodes[0].nodeValue;
win.WEBLIB_InsertThumb(mediumimageURL);