Larger image in the Detail Page

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

Re: [chassa2556] Larger image in the Detail Page

By Dave - July 2, 2008

Hi Charles,

If you know you're only going to have images in your upload field then instead of using this:

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

Just use this:

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

The code generator automatically creates those tags for you. One displays the large image and one display the thumbnail.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com