> To: "WebDNA Talk" 2003) > To: "WebDNA Talk" DOWNLOAD WEBDNA NOW! 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... tag if>>> the image isn't in the directory you will have to do a fileinfo>>> comparison.>>> >>> [FileInfo file=images/[image]][showif [exists]=T]
>> SRC="...">[/showif][/fileinfo]>> >> He wants a little bit more than that, a different, default image to>> show when the correct one is not available...>> >> Where [image] is the name of the file you are looking for...>> >> [FileInfo file=images/[image]]>> [showif [exists]=T]
[/showif]>> [showif [exists]!T]
[/showif]>> [/fileinfo]>> >> Paul>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
So is this what you're asking:That you want a default image (or something) to show up in case the serverwith the images is not working?That sounds a bit painful if that's the case.If that's not the case, are you talking about no image being available likea shop product where the template requires an image for the product. Ifthat's the case, how do you store the image name in the db. If you store theactual image name in the db, then you could do a:[if ("[imagename]"="")][then]
[/then][else]
[/else][/if]Or if the imagename is based on an SKU, you could add an extra field like"HAS_IMAGE" then:[if ("[HAS_IMAGE]"="T")][then]
[/then][else]
[/else][/if]Regards,Tim> From: "Jesse Crofoot"
tag if>>> the image isn't in the directory you will have to do a fileinfo>>> comparison.>>> >>> [FileInfo file=images/[image]][showif [exists]=T]
>> SRC="...">[/showif][/fileinfo]>> >> He wants a little bit more than that, a different, default image to>> show when the correct one is not available...>> >> Where [image] is the name of the file you are looking for...>> >> [FileInfo file=images/[image]]>> [showif [exists]=T]
[/showif]>> [showif [exists]!T]
[/showif]>> [/fileinfo]>> >> Paul>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
Top Articles:
Talk List
Related Readings:
Re:2nd WebCatalog2 Feature Request (1996)
WebDNA Writer Needed (1997)
I'm tired of all this! (2000)
Auto SKU's (2000)
Netscape v. IE (1997)
Repeating Fields (1997)
Limiting user access to .tmpl files (1997)
Problems with [Applescript] (1997)
redirect & arguments (2001)
Email Format (1998)
Emailer will not send emails to addresses outside of its SMTP (2002)
latest version? (1998)
OT: javascript help (2003)
format_to_days on NT (1997)
help needed: Non-english characters in WebCatalog (1997)
Nesting format tags (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Press Release hit the NewsWire!!! (1997)
WebCatalog NT beta 18 problem (1997)
shipcost (1997)