Re: External Images

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20157
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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: External Images (Kenneth Grome 1998)
  2. Re: External Images (PCS Technical Support 1998)
  3. Re: External Images (Christer Olsson 1998)
  4. Re: External Images (Kenneth Grome 1998)
  5. Re: External Images (Paul Uttermohlen 1998)
  6. Re: External Images (PCS Technical Support 1998)
  7. Re: External Images (Kenneth Grome 1998)
  8. External Images (Mark Bergkvist 1998)
>>> 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Christer Olsson

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:

show me your store ! (2003) WebDNA for Dummies (2003) Re:quit command on NT (1997) Multiple prices (1997) sorted cart? (1998) Apache2 connector (2003) Seeking Better Display of results... (1997) Date Math bug (1998) Not really WebCat (1997) [WebDNA] listfunctions, listscopes, listincluded? (2011) Help! WebCat2 bug (1997) email (1998) Navigator 4.01 (1997) Re:Emailer and encryption (1997) Help Please WebDNA 6 Secure Forms Problem (2004) more trouble with [showif] in [search] = busted [shownext] - SOLVED (2000) Running _every_ page through WebCat ? (1997) WebCatalog for guestbook ? (1997) Relay link (2002) Emailer [cart] file names (1997)