I'm using a ComplexTableField to show a list of images and related information for each image in a dataobject. However when I call the image into the ComplexTableField I get the full image.
Is there a way of getting the 100x100 resampled image that is used to display the image in the popup in the CMS (the same one that appears after adding a new image in the image uploader)?
A snippet of the ComplexTableField is below:
...
/***** Image List *****/
$RelatedImageList = new ComplexTableField(
$this,
'ProductImage',
'ProductImage',
array(
'ProductImage' => ' Image',
'ProductDetail.Title' => 'Product'
),
'getCMSFields_forPopup',
'',
'',
'LEFT JOIN ProductDetail ON `ProductDetail`.ID = `ProductImage`.ProductDetailID'
);
$RelatedImageList->setParentClass('ProductList');
$RelatedImageList->setShowPagination(false);
$RelatedImageList->setPageSize(1000);
$RelatedImageList->setAddTitle("Image");
$RelatedImageList->setPopupSize("600px", "700px");
$fields->addFieldToTab( 'Root.Content.ProductImages', $RelatedImageList );
...