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 withthe name [hls].gif, and if there's no file with that name, it displaysnothing.The second part deals with the situation when there's no file with thatname. It hides the none.gif image tag except when the first sectiondisplays 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 itworks. Now all I have to do is add new files to the previews folder, andWebCat2 will either create the image tags for those files, or else it willcreate an image tag for the 'none.gif' file I want to display when theproper image file is not found.Sincerely, Ken Grome ..... ken@iav.comhttp://usarea.net/home.html
Associated Messages, from the most recent to the oldest:
>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 withthe name [hls].gif, and if there's no file with that name, it displaysnothing.The second part deals with the situation when there's no file with thatname. It hides the none.gif image tag except when the first sectiondisplays 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 itworks. Now all I have to do is add new files to the previews folder, andWebCat2 will either create the image tags for those files, or else it willcreate an image tag for the 'none.gif' file I want to display when theproper image file is not found.Sincerely, Ken Grome ..... ken@iav.comhttp://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:
Secure server question (1997)
b12 cannot limit records returned and more. (1997)
Add a field to the error log? (1997)
Grant, please help me ... (1997)
Cookies not setting on IE (2002)
Will webdna execute before a [redirect]? (1999)
Problems passing [SKU] with $Replace in 2.0 (1997)
WebMerchant (1997)
Error Lob.db records error message not name (1997)
HELP WITH DATES (1997)
WebCat on OS X 10.4.7 won't send emails (2006)
Word search (1997)
End of line control characters (2000)
WebCat2 several catalogs? (1997)
Introduction/Tutorial/QuickStart (1997)
[WebDNA] reCAPTCHA and WebDNA (2010)
bug in [SendMail] (1997)
different ship dates and shopping carts -- how to? (1997)
Testing ... (2002)
Price Not Appearing (2000)