Re: [Rohwer] Image thumbnails questions
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.comHope 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