Re: External Images
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20141
interpreted = N
texte = >I have a web catalog setup with a very large database (70,000 items) and want>to setup the details page to look in a directory for an image of the product>and display it if found. If not found then I would like for no information to>be displayed or a message that says Image not Available. Because I import>the database on a daily basis, I am unable to use the HasPhoto option, simply>because there are too many items and not all items have images/pictures.>>I have been able to load the image simply with the following command in the>details template:>>
![](http://www.myimageserver.com/~productimages/[sku].gif)
>>However, if there is no image for a sku, I get the stupid netscape/ie missing>image logo and I don't want this to appear.>>Is there a way to make this work and look good???1- Store the images on your webcat server in a folder called localimagefolder ... as well as on your www.myimageserver.com server.2- Use this webdna instead of the tag above:[showif [listfiles localimagefolder/][filename][/listfiles]^[sku].gif]
![](http://www.myimageserver.com/~productimages/[sku].gif)
[/showif]Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>I have a web catalog setup with a very large database (70,000 items) and want>to setup the details page to look in a directory for an image of the product>and display it if found. If not found then I would like for no information to>be displayed or a message that says Image not Available. Because I import>the database on a daily basis, I am unable to use the HasPhoto option, simply>because there are too many items and not all items have images/pictures.>>I have been able to load the image simply with the following command in the>details template:>>
![](http://www.myimageserver.com/~productimages/[sku].gif)
>>However, if there is no image for a sku, I get the stupid netscape/ie missing>image logo and I don't want this to appear.>>Is there a way to make this work and look good???1- Store the images on your webcat server in a folder called localimagefolder ... as well as on your www.myimageserver.com server.2- Use this webdna instead of the tag above:[showif [listfiles localimagefolder/][filename][/listfiles]^[sku].gif]
![](http://www.myimageserver.com/~productimages/[sku].gif)
[/showif]Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Quit revisited (1997)
WebDNA deletes major DB data big time (2004)
WebCat2: Items xx to xx shown, etc. (1997)
[isfile] ? (1997)
Still online from NY (2003)
Bug Report, maybe (1997)
Problem with Formulas.db (1998)
OT: Heads-up to Smith Micro staff (2002)
Help with nested search (1998)
Not really WebCat (1997)
Grouping search fields, etc. (1997)
List of WebDNA users (2002)
[LOOKUP] (1997)
WebCat2b15MacPlugin - showing [math] (1997)
[OT] Domain Name Scam (2000)
switching users (1998)
OK, here goes... (1997)
Not really WebCat (1997)
Upload images to non DNA server (2004)
WebCatalog for guestbook ? (1997)