Re: default image if image in code not available
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 46857
interpreted = N
texte = You're right... I normally have an extra field to say whether the producthas an image (T or F), and then do the showif/hideif on that (that'swhat I meant anyway) ;-) hey I've been holidaying for 3 weeks....Therefore what I meant was something like:[showif [hasimage]=F]

[/showif][showif [hasimage]=T]

[/showif]'hasimage' being the fieldname which is updated when an image is uploaded.Regards,Tim> From: Brian Boegershausen
> Reply-To: (WebCatalog Talk)> Date: Mon, 13 Jan 2003 20:48:31> To: (WebCatalog Talk)> Subject: Re: default image if image in code not available> > 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/> -------------------------------------------------------------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:
You're right... I normally have an extra field to say whether the producthas an image (T or F), and then do the showif/hideif on that (that'swhat I meant anyway) ;-) hey I've been holidaying for 3 weeks....Therefore what I meant was something like:[showif [hasimage]=F]
[/showif][showif [hasimage]=T]
[/showif]'hasimage' being the fieldname which is updated when an image is uploaded.Regards,Tim> From: Brian Boegershausen > Reply-To: (WebCatalog Talk)> Date: Mon, 13 Jan 2003 20:48:31> To: (WebCatalog Talk)> Subject: Re: default image if image in code not available> > 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/> -------------------------------------------------------------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:
Possible Bug in 2.0b15.acgi (1997)
Multicolumn table layout (was Variable Math) (1998)
Requiring that certain fields be completed (1997)
authenticating a second user, the sequel (1997)
founditems and setheader (2000)
WebCat2b15MacPlugin - [protect] (1997)
Country & Ship-to address & other fields ? (1997)
Displaying xx number of characters (1997)
Field name-subcategory (1997)
Hiding URL ? (1998)
Serving images from databases (1998)
Read and weep (2003)
Emailer port change (1997)
Multiple Pulldowns/Gary (1997)
WC2f3 (1997)
PIXO support (1997)
RE: Can't get appendfile to work (1997)
Search Engines (2002)
WebCat2b12plugin - [search] is broken ... not! (1997)
Num Sort Descending (2004)