Image thumbnails questions

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 2, 2011   (RSS)

Re: [Rohwer] Image thumbnails questions

By gkornbluth - February 2, 2011 - edited: February 2, 2011

Hi Rohwer,

You can do what you want to very easily.

You can set up up to 5 separate image sizes (4 thumbnails and the original) in the input validation area when you create or modify your upload field.

Don't forget to click on recreate and then save if you add or change the amount of thumbs or their sizes. Thumbs are normally only created when you upload the original images

They get accesses by referencing the thumbUrlPath, thumbWidth, thumbHeight

as

thumbUrlPath2, thumbWidth2, thumbHeight2

or 3 or 4.

The link to the original image would be (used inside your foreach loop):
<a href="<?php echo $upload['urlPath'] ?>">your link text</a>

If you wanted the thumbnail to be clickable, you could use this instead:
<a href="<?PHP echo $upload['urlPath'] ?>"><img src="<?PHP echo $upload['thumbUrlPath'] ?>" width="<?PHP echo
$upload['thumbWidth'] ?>" height="<?PHP echo $upload['thumbHeight'] ?>" alt="" /></a>

There's a lot of this kind of information in my CMSB Cookbook http://www.thecmsbcookbook.com

Hope that helped.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Image thumbnails questions

By Rohwer - February 2, 2011

Appreciate the help and you were dead on! Exactly what I wanted. Didn't even notice the advanced thumbnail options available. Need to check my eyesight.

And i did need the thumbnail clickable. Working on getting it working with lightbox now which shouldn't be too hard.

Will be purchasing your cookbook mainly due to the fact that you help everybody on here. More importantly me :)

Thanks again!

Re: [Rohwer] Image thumbnails questions

Glad I could help,

There's a lot on lightroom in the Cookbook also.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php