I got problem with ad-image-wrapper height when using adgallery package from your extension download. So I try to download js and css package from http://coffeescripter.com/code/ad-gallery/ then it works great.
In version 1.0.1 (just uploaded) I set the size of the iamge wrapper specifically and set the size of the thumb container to the outerHieght(true) of the thumbnail images after the widget resizes them (if specified), so that it will be as big as the thumb, any borders, margins, and paddings.
Please try it out (with the widget stylesheet instead of the ad-gallery stylesheet) and tell me what you think! Please let me know if it doesn’t work for you, and what browser/os you use.
Just copied the example widget code (see above) into protected/views/site/pages/about.php in order to make some first steps. Package 1.0.1 is installed in extensions folder of course.
I expected to see a nice photo gallery, but instead a vertical list of large original sized pictures - given by imageList array - with HTML bullet points in front appears. I’m troubleshooting for a while now trying to understand AdGallery .php and .js files but I don’t see any obvious mistake I made.
Thanks for your quick response and helping solve the issue! You are right, the CSS file was not published in the assets folder because of wrong write/read access options for the subfolders under assets.
Yes, but indirectly. You would read in the directory in php, make an array, and pass the array of image names to the extension. The extension does not know your directory structure or how it relates to your assets and the publishing of those assets. This function should help you get there: