Using other Thumbnails only

5 posts by 3 authors in: Forums > CMS Builder
Last Post: January 11, 2010   (RSS)

Re: [misery217] Using other Thumbnails only

By Damon - October 14, 2009

Try this:
<?php foreach ($record['images'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath2'] ?>" width="<?php echo $upload['thumbWidth2'] ?>" height="<?php echo $upload['thumbHeight2'] ?>" />

etc....

<?php endif ?>
<?php endforeach ?>


If that doesn't work for you, can you attach your php page so I can take a look at all of the code.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Using other Thumbnails only

Okay Damon, thanks!!! Adding the modifier to the end of the height and width was the trick!

Re: [Damon] Using other Thumbnails only

By Codee - January 9, 2010

This is a piece of info I recommend going into the "doc" page under "displaying uploads" as it's a simple, although standard, part of the CMSB coding.

Re: [equinox69] Using other Thumbnails only

By Damon - January 11, 2010

Hi,

Good point, thanks.

I updated the "Displaying Uploads" page in the docs to include this.

http://www.interactivetools.com/docs/cmsbuilder/uploads.html
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/