Working with the new thumb2, thumb3,etc

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 25, 2008   (RSS)

Re: [kkegans] Working with the new thumb2, thumb3,etc

By Dave - August 25, 2008

Hi Kurt,

Just add the number (2, 3, or 4) on the end and test for thumbUrlPathX instead of hasThumbnail. If there's no thumbnail thumbUrlPathX will be blank and test as false.

<?php if ($upload['thumbUrlPath2']): ?>
<a href="<?php echo $upload['urlPath2'] ?>" rel= "lightbox[model]">
<img border="0" src="<?php echo $upload['thumbUrlPath2'] ?>"
width="<?php echo $upload['thumbWidth2'] ?>"
height="<?php echo $upload['thumbHeight2'] ?>" alt="" />
<?php endif ?>


Hope that helps (and makes sense!). Let me know if you have any questions about that.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Working with the new thumb2, thumb3,etc

By kkegans - August 25, 2008

Dave,



Thanks, that make perfect sense... I tried "thumb2UrlPath", etc, but didn't think to try it with the 2 on the end...



Kurt
CMSB Rocks!



Thanks,



Kurt