Closed ghost closed 11 years ago
Please see https://github.com/isotope/core/commit/5cbf2695d31b5d2721486807b4c84dffd0a14efd
--- Originally created by andreas.schempp on 2012-05-10 20:06:37
Thanks for changes, but my problem remains same. As I described here http://www.contao-community.org/viewtopic.php?f=36&t=4140, I wanted to access value of [thumbnail_size] from IsotopeGallery Object inside template. Since variable arrFiles is defined as protected, I need above function to get to the informations or is there any other way? You have commented in the new IsotopeGallery.php about line 330 "// Main image is first in the array". how do I access this in my Template file?
I need size information of thumbnail images so that I can dynamically write the css for the containing box. Ideally, the best thing would be if you can also provide all size informations by adding one more line.
...
if (is_array($arrSize) && strlen($arrSize[3]))
{
$file[$size['name'] . '_size'] = $arrSize[3];
$file[$size['name'] . '_sizeInfo'] = $arrSize; // my addition
}
...
Thank you
--- Originally created by tsarma on 2012-05-11 09:17:43
$this->images->images['gallery_size'];
should do it?
--- Originally created by andreas.schempp on 2012-05-11 09:19:45
Thanks a lot, it did! In my case it is like this $this->images->images[0]['thumbnail_size'];
Please consider my 2nd suggestion $file[$size['name'] . '_sizeInfo'] = $arrSize; , But if you think it is useless, then its OK
--- Originally created by tsarma on 2012-05-11 09:32:37
Added in https://github.com/isotope/core/commit/3db21a986dbdfb23674861d1eda5d6c9c8bae7a5
--- Originally created by andreas.schempp on 2012-05-12 13:32:46
Can you please provide this function in Class -> IsotopeGallery.php. otherwise I can't access images information in Templates. e.g. inside iso_list_default.
With above function, I can get the Images information in template file by doing $this->images->showImagesInfo(); Thanks
--- Originally created by tsarma on 2012-05-10 17:32:58 (ID 3173)