Image thumbnails questions

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

By Rohwer - February 2, 2011

On my details page I want one image to be thumbnailed a little larger then the rest and in a different location. Little unsure how to do this due to the images already being thumbnailed to a set size.

Also what is the code to link to the original images of the thumbnailed version?

Thanks in advance!

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

By gkornbluth - February 2, 2011

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