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:
No incentive ... (2000)
WebCat b13 CGI -shownext- (1997)
Windows version Trouble Shooting (2007)
Mac Vs WindowsNT (1997)
wild question (1998)
My slower response (1997)
Security & Query Strings (2004)
Cart passing in URL... (2004)
On a related topic (2006)
Initiating NewCart (1997)
[WriteFile] problems (1997)
update on wn searching (1997)
Price and Formula.db (2002)
PCS Customer submissions ? (1997)
NT Manual (1997)
PSC recommends what date format yr 2000??? (1997)
Using Cookie for client specific info? (1997)
[SearchString] problem with [search] context (1997)
No one gets my client's code for free ... (2005)
[ot] table gap help?!? (2001)