Re: default image if image in code not available

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 46856
interpreted = N
texte = Tim, your example will not work. Steve, needs to look for the image file, not the sku in the database. If there is no sku, then there is no product,,,, so why would you need a photo anyway.Try this code:[showif [fileinfo file=images/[sku].gif][exists][/fileinfo]=T] [/showif] [hideif [fileinfo file=images/[sku].gif][exists][/fileinfo]=T] [/hideif] Brian----- Original Message ----- From: Tim Robinson To: WebCatalog Talk Sent: Monday, January 13, 2003 8:01 PM Subject: Re: default image if image in code not available > [showif [sku]=][/showif] > [hideif [sku]=][/hideif] > > > > From: steve chun > > Reply-To: (WebCatalog Talk) > > Date: Mon, 13 Jan 2003 19:41:46 > > To: (WebCatalog Talk) > > Subject: default image if image in code not available > > > > Looking for suggestions for the following problem. Here is the code: > > > > > > > > > > What I would like to do is have Webcatalog look in a folder for the > > image based on the sku and if there is no image by that sku, then > > replace it with a default no image gif file. > > > > I thought of using listfile but there may be 2,000 images in the > > folder and I'm worried about system performance. > > > > Only other alternative is to import pictures into Filemaker and do a > > lookup to create the code for the exported database but that's a big > > extra step. > > > > > > > > sc > > > > > > ------------------------------------------------------------- > > 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: default image if image in code not available (Rob Marquardt 2003)
  2. Re: default image if image in code not available (Christer Olsson 2003)
  3. Re: default image if image in code not available (steve chun 2003)
  4. Re: default image if image in code not available (Tim Robinson 2003)
  5. Re: default image if image in code not available (Brian Boegershausen 2003)
  6. Re: default image if image in code not available (Tim Robinson 2003)
  7. default image if image in code not available (steve chun 2003)
Tim, your example will not work. Steve, needs to look for the image file, not the sku in the database. If there is no sku, then there is no product,,,, so why would you need a photo anyway.Try this code:[showif [fileinfo file=images/[sku].gif][exists][/fileinfo]=T] [/showif] [hideif [fileinfo file=images/[sku].gif][exists][/fileinfo]=T] [/hideif] Brian----- Original Message ----- From: Tim Robinson To: WebCatalog Talk Sent: Monday, January 13, 2003 8:01 PM Subject: Re: default image if image in code not available > [showif [sku]=][/showif] > [hideif [sku]=][/hideif] > > > > From: steve chun > > Reply-To: (WebCatalog Talk) > > Date: Mon, 13 Jan 2003 19:41:46 > > To: (WebCatalog Talk) > > Subject: default image if image in code not available > > > > Looking for suggestions for the following problem. Here is the code: > > > > > > > > > > What I would like to do is have Webcatalog look in a folder for the > > image based on the sku and if there is no image by that sku, then > > replace it with a default no image gif file. > > > > I thought of using listfile but there may be 2,000 images in the > > folder and I'm worried about system performance. > > > > Only other alternative is to import pictures into Filemaker and do a > > lookup to create the code for the exported database but that's a big > > extra step. > > > > > > > > sc > > > > > > ------------------------------------------------------------- > > 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/ Brian Boegershausen

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:

WebDelivery downloads alias, not original ? (1997) dates and hex formatting (1997) [OT] CSS div/span (2004) can WC render sites out? (1997) error: Too many nested [xxx] contexts (1997) [CART] inside a [LOOP] (1997) Formulas.db (2001) Sorting by date (1997) Image maps/Webcat (1997) Upgrade Pricing? (2003) Summary search -- speed (1997) MacWEEK article help needed (1996) Re[2]: POSTing to a secure server ... (2000) [WebDNA] TcpConnect Help (2011) more cookie crumbling (1999) WebCatalog Upgrade Pricing? (1997) [WebDNA] MD5 Hash issue (2009) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Re:2nd WebCatalog2 Feature Request (1996) Date Sorting (1997)