Re: [isfile] ?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11442
interpreted = N
texte = >I have the following WebDNA working, but there's a problem I cannot seem to >resolve. This code is supposed to show the tag only if the file is in >the previews folder. That part works fine, but ... > >when the file name I'm seeking does *not* exist in the previews folder, I >want to display a 'noPhotos.gif'. Any ideas how to do this? Never mind, I just came up with a solution! :) [ListFiles previews/] [showif [FileName]=[hls].gif] [/showif] [/ListFiles][hideif [ListFiles previews/][FileName][/ListFiles]^[hls].gif] [/hideif] The first section makes the [listfiles] context display only the file with the name [hls].gif, and if there's no file with that name, it displays nothing.The second part deals with the situation when there's no file with that name. It hides the none.gif image tag except when the first section displays nothing.Yes, I did it! :) I'm happy, can you tell?This one wasn't all that easy for me to figure out, but I did it and it works. Now all I have to do is add new files to the previews folder, and WebCat2 will either create the image tags for those files, or else it will create an image tag for the 'none.gif' file I want to display when the proper image file is not found.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Associated Messages, from the most recent to the oldest:

    
  1. Re: [isfile] ? (Grant Hulbert 1997)
  2. Re: [isfile] ? (Christer Olsson 1997)
  3. Re: [isfile] ? (Grant Hulbert 1997)
  4. Re: [isfile] ? (Kenneth Grome 1997)
  5. Re: [isfile] ? (Christer Olsson 1997)
  6. Re: [isfile] ? (Kenneth Grome 1997)
  7. Re: [isfile] ? (Kenneth Grome 1997)
  8. Re: [isfile] ? (Grant Hulbert 1997)
  9. Re: [isfile] ? (Kenneth Grome 1997)
  10. Re: [isfile] ? (grichter@panavise.com (Gary Richter) 1997)
  11. [isfile] ? (Kenneth Grome 1997)
>I have the following WebDNA working, but there's a problem I cannot seem to >resolve. This code is supposed to show the tag only if the file is in >the previews folder. That part works fine, but ... > >when the file name I'm seeking does *not* exist in the previews folder, I >want to display a 'noPhotos.gif'. Any ideas how to do this? Never mind, I just came up with a solution! :) [ListFiles previews/] [showif [FileName]=[hls].gif] [/showif] [/ListFiles][hideif [ListFiles previews/][FileName][/ListFiles]^[hls].gif] [/hideif] The first section makes the [listfiles] context display only the file with the name [hls].gif, and if there's no file with that name, it displays nothing.The second part deals with the situation when there's no file with that name. It hides the none.gif image tag except when the first section displays nothing.Yes, I did it! :) I'm happy, can you tell?This one wasn't all that easy for me to figure out, but I did it and it works. Now all I have to do is add new files to the previews folder, and WebCat2 will either create the image tags for those files, or else it will create an image tag for the 'none.gif' file I want to display when the proper image file is not found.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html 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:

HomePage Caution (1997) This list needs a digest: rant, rave... (1997) WebCatalog Hosting (1996) Can't find one of the WebCat examples anymore (1999) Problems with webcat 2.01 for NT (1997) OT: SMSI stock (2003) OT: Unix Geek Needed (2005) quit command on NT (1997) HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) How To get Some Help (2003) The force has left me. (2002) Frames and WebCat (1997) RAM variables (1997) best way to limit # of attempts to login to protected page? (2000) totals (1997) WebCat2 - Getting to the browser's username/password data (1997) Page-Execution-Timer...PHP vs WebDNA (2004) Great product and great job ! (1997) Multiple Pulldowns (1997) Date search bug (1998)