Re: External Images
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20155
interpreted = N
texte = >> I'd use>>>>[ShowIf [FileInfo localimagefolder/[sku].gif][Exists][/FileInfo]=T]>>
>>[/ShowIf]>>>>instead, because it just looks for the one file.>>>>To really speed things up, I'd do a daily 'report' of all the files that>>exist in that folder, and set the HasPhoto field to T for each one that>>exists. Then you don't have to hist the disk every time you want to see if>>a photo exists.>>>I like that. I can use that. And I like the idea to really speed things>up but I can't picture how to do it. How would I go about doing that daily>'report' of all the files that exist in that folder, etc.?Once a day, do this for your daily 'report':[writefile DailyImageFileReport][listfiles localimagefolder/][filename][/listfiles][/writefile]Then use this code in your template:[showif [include DailyImageFileReport]^[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'd use>>>>[ShowIf [FileInfo localimagefolder/[sku].gif][Exists][/FileInfo]=T]>>
>>[/ShowIf]>>>>instead, because it just looks for the one file.>>>>To really speed things up, I'd do a daily 'report' of all the files that>>exist in that folder, and set the HasPhoto field to T for each one that>>exists. Then you don't have to hist the disk every time you want to see if>>a photo exists.>>>I like that. I can use that. And I like the idea to really speed things>up but I can't picture how to do it. How would I go about doing that daily>'report' of all the files that exist in that folder, etc.?Once a day, do this for your daily 'report':[writefile DailyImageFileReport][listfiles localimagefolder/][filename][/listfiles][/writefile]Then use this code in your template:[showif [include DailyImageFileReport]^[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:
question: back button prevention (1997)
WebCat hosting providers? (1997)
Emailer Timing out (1999)
Rhapsody? (1997)
PhotoMill -> PhotoMaster (1997)
Odd Cart Behavior (1997)
FYI-WebCat Mac or NT (1997)
RE: IIS4b2 and WebCatalog b19 (1997)
NT Manual (1997)
webcat2b12 CGI -- Date comparisons (1997)
Thanks ! (1997)
Using Applescript to process WebCatalog functions (1998)
Local redirects ... (2005)
[WebDNA] TLS 1.2 and [tcpconnect] (2018)
IGNORE: WAP and IIS server (2002)
still having shipCost.db Problem (1997)
RE: NewCart+Search with one click ? (1997)
Webstar 1.3.1 PPC (1997)
Problems reading files created by WC (1997)
Nesting format tags (1997)