Re: External Images
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20161
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]>>It would probably be even faster to do a [listfiles] once a day and update>the product database HasPhoto field with T for each image found.... and it would also be a good idea to set HasPhoto to F for each image NOT found, since you don't want any 'broken image' icons to be displayed for items whose images have been removed ... :)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]>>It would probably be even faster to do a
[listfiles] once a day and update>the product database HasPhoto field with T for each image found.... and it would also be a good idea to set HasPhoto to F for each image NOT found, since you don't want any 'broken image' icons to be displayed for items whose images have been removed ... :)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:
Attention all list readers (1997)
[WebDNA] 6.2 Sorry WebDNA server not running (2015)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
PC Auth Hub+Merchant (1998)
WC Database Format (1997)
WebDNA for Dummies (2004)
newbies to web, spaces in email address (1998)
WebCatalog for guestbook ? (1997)
ShowNext truncating passed variable?? (1997)
Running 2 two WebCatalog.acgi's (1996)
faxing orders (2000)
[WebDNA] WebDNA slow processing (2011)
Can this be done? (1997)
RE: Languages (1997)
[WebDNA] WebDNA variable from form contents (2010)
virtual virtual hosted store.... (1998)
[WebDNA] [OT] hello (2012)
UPS Quick Cost Calculator (1997)
WC2b12: Yes, Formulas.db is for real (1997)