Image Don't Show on Web page

5 posts by 3 authors in: Forums > CMS Builder
Last Post: May 14, 2012   (RSS)

By wow123 - May 12, 2012

I have the web site link like this:
www.mydomain.com/inventory.php

I have changed the Upload Directory to: ../uploads/
and the Upload Folder URL to: /cmsAdmin/uploads/

The images show up in the Section Editor when I create the listing, but it will not show up on the web site: www.mydomain.com/inventory.php

It gives me this ERROR:

Record Number: 1
_link : inventory-detail.php?1
image:

Upload Url: /cmsAdmin/uploads/13.jpg

All of the input fields show up fine.

Let me know what I need to do to fix this, thanks guys!

Re: [wow123] Image Don't Show on Web page

By gkornbluth - May 13, 2012

Hi wow123,

Do you mean that the page showed images once, and now that you've changed the upload directory the page doesn't show the images?

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Image Don't Show on Web page

By wow123 - May 14, 2012

No,

the place where the image is suppose to be on the web site says this:

Record Number: 1
_link : inventory-detail.php?1
image:

Upload Url: /cmsAdmin/uploads/13.jpg


No Image shows up.
Here is the URL: http://www.seventhwing.com/inventory.php

Re: [wow123] Image Don't Show on Web page

By Damon - May 14, 2012

Hi,

The Code Generator will give you code examples for displaying image details in a variety of ways. Remove the HTML comments and publish all the image code to see what is available.

Next, remove any image publish code you don't want, then format as needed.

For example, use this code to publish thumbnail images that are linked to larger images:

<?php foreach ($record['image'] as $index => $upload): ?>

<a href="<?php echo $upload['urlPath'] ?>">
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="<?php echo htmlencode($upload['info1']) ?>" title="<?php echo htmlencode($upload['info1']) ?>" /><br/>
</a>

<?php endforeach ?>


Please let me know if you have any questions or would like more details.

Thanks!
Cheers,
Damon Edis - interactivetools.com

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