Showing Second Thumbnail

3 posts by 3 authors in: Forums > CMS Builder
Last Post: July 16, 2009   (RSS)

By theclicklab - July 15, 2009

Hi there, for CMS builder I have a setup where I need 2 diferent thumbnail size and on the list page I want to show the second smaller thumbnail.

So this shows the first thumbnail:
<?php if ($upload['hasThumbnail']): ?>

What shows the second thumbnail?

Many thanks
Jan

Re: [aquaman] Showing Second Thumbnail

By ross - July 16, 2009

Hi Jan

Thanks for posting!

To access the second thumbnails, you don't actually need to change that specific line. Right after it though, you would normally have something like this:

<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

to access the second thumbnail, you just need to stick a "2" after each variable like this:

<img src="<?php echo $upload['thumbUrlPath2'] ?>" width="<?php echo $upload['thumbWidth2'] ?>" height="<?php echo $upload['thumbHeight2'] ?>" alt="" /><br/>

Give that shot and let me know how you make out :)
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/