Re: Replace Missing Images

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53902
interpreted = N
texte = So is this what you're asking: That you want a default image (or something) to show up in case the server with 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 like a shop product where the template requires an image for the product. If that's the case, how do you store the image name in the db. If you store the actual 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" > Reply-To: (WebDNA Talk) > Date: Fri, 7 Nov 2003 11:33:22 -0600 > To: (WebDNA Talk) > Subject: Re: Replace Missing Images > > Thanks again for the help on this. The problem I'm facing with is the > images I'm try to do this for are on a windows server so that I don't have > to deal with case sensitivity of the Linux Server that is running WebCat. > And to my understanding, the [FileInfo] tag is for local files. Is there a > way to do it for remote files? > > Jesse > > > ----- Original Message ----- > From: "Paul Willis" > To: "WebDNA Talk" > Sent: Friday, November 07, 2003 10:44 AM > Subject: Re: Replace Missing Images > > >>>> What I'm trying to figure out is if there is a way to dynamically >>>> display a >>>> image not available image, if the image in the img tag isn't found. >>> >>> If you are talking about not displaying the 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 . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Replace Missing Images ( Tim Robinson 2003)
  2. Re: Replace Missing Images ( "Jesse Crofoot" 2003)
  3. Re: Replace Missing Images ( Paul Willis 2003)
  4. Re: Replace Missing Images ( Donovan Brooke 2003)
  5. Replace Missing Images ( "Jesse Crofoot" 2003)
So is this what you're asking: That you want a default image (or something) to show up in case the server with 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 like a shop product where the template requires an image for the product. If that's the case, how do you store the image name in the db. If you store the actual 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" > Reply-To: (WebDNA Talk) > Date: Fri, 7 Nov 2003 11:33:22 -0600 > To: (WebDNA Talk) > Subject: Re: Replace Missing Images > > Thanks again for the help on this. The problem I'm facing with is the > images I'm try to do this for are on a windows server so that I don't have > to deal with case sensitivity of the Linux Server that is running WebCat. > And to my understanding, the [fileinfo] tag is for local files. Is there a > way to do it for remote files? > > Jesse > > > ----- Original Message ----- > From: "Paul Willis" > To: "WebDNA Talk" > Sent: Friday, November 07, 2003 10:44 AM > Subject: Re: Replace Missing Images > > >>>> What I'm trying to figure out is if there is a way to dynamically >>>> display a >>>> image not available image, if the image in the img tag isn't found. >>> >>> If you are talking about not displaying the 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 . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Tim Robinson

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:

WebCat 3.04-3.07 plug-in dying on server.... (2000) [delete] problem (1997) New index for docs (1997) Explorer 3.0/ Access Denied! (1997) Not really WebCat- (1997) Grouping search fields, etc. (1997) RE: WebCat: Access denied, but why? (1997) off topic - dna snipets (1997) Authorize.Net down 2 days in row (2004) Server IP address (2004) [WebDNA] how to purge webdna cache of templates? (2009) [TaxableTotal] - not working with AOL and IE (1997) Email (1998) Running _every_ page through WebCat ? (1997) Running 2 two WebCatalog.acgi's (1996) Universal root for WC errors? (1997) RE: Sorting error (1997) [/application] error? (1997) reading a email (2000) Looking up two prices in Formulas.db (1997)