Increase number of thumbnails

3 posts by 3 authors in: Forums > CMS Builder
Last Post: March 25, 2013   (RSS)

By illumemagazine - March 19, 2013

Hi,


Currently CMSB has the ability to create 4 thumbnails max I believe. Since we display our site on several screen sizes, ie: mobile apps, is there a way we can increase the number of thumbnails CMSB generates? Ideally, we would like to have 6 - 8...

Thanks

By gregThomas - March 25, 2013

Hi Javed,

Sorry for the delay in reply.

This is something we will look into adding in a future release.

I've had a look at the CMS Builder core files, and unfortunately there isn't an easy way to add more thumbnail images without heavily modifying the current code. 

When I've come across this issue on a project, I use the closest larger thumbnail image size, and use CSS or HTML to resize it to the correct height, for example:

  <?php foreach ($blogRecord['uploads'] as $upload): ?>
    <img height="100" src="<?php echo $upload['thumbUrlPath']; ?>" alt="<?php echo $upload['info1']; ?>" />
  <?php endforeach ?>

By setting just the height, the ratio of the image will be correct, and by shrinking a larger image the quality will be kept. 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com