Larger image in the Detail Page

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

By chassa2556 - July 2, 2008

Could you tell me how do I make an image larger in the detail page to the image in the listing page. Sorry to be dim but I'm trying to make a rudimentary framework here. 

So I want to click from the listings viewer where there is a smaller image to the details page where I would like a bigger scale of the same image.

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