Re: Three new problems, maybe a fourth

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12194
interpreted = N
texte = >I found three 'problems' that affect my WebCat site today ... > >1- RequiredFields does not work! I was counting on using this in one of my >append forms, but it doesn't do anything at all. I thought it was supposed >to generate some kind of default template that lists the fields which were >required but that did not have anything entered into them, but it doesn't >do anything from what I can see ... :(It works fine for me like thisIt must be declared before you get the the variable in this case form.body This is on the input page not the [append] page> >2- If the listfiles context looks at a folder that has no files in it, >WebCat produces an error saying that the path to the listfiles folder is >wrong ...when actually the path is correct! If you're going to use this >feature, make sure you put at least one file inside the folder to prevent >this error ... :) > >3- Apparently you cannot do a [showif] inside a [listfiles] context in >order to display only certain listfile items ... or maybe you can but it >just won't work if you do it inside a table. Unfortunately I need it inside >the table ...Sorry but I erased my stuff using list files since I am in the process of writing my download directory using templates and a database with no [listfiles]. But I know when I was trying to figure out away to navigate back up the folders instead of down (that was easy going down), I had a ton of showif's embedded all over the place besides the normal [showif [isfolder]=T] inside tables. Can you post your snip-it. >I put a showif context inside a listfiles context, and all this went inside >a table. Unfortunately, all the HTML after the listfiles context does *not* >get sent to the browser, so the table does not get displayed at all ... :( I regards to this I was using the process of going down in the folder levels by creating a template with the same name as the folder and doing another listfiles inside that all using something off the top of my head like this[showif [isfolder]=T] Goto Catalog directorySo I had a folder in the directory I was pointing [listfiles] at name catalog So they click on the hotlink and launched another template which looked inside that folder In this case I had a template catalog.tmpl.Now if I remember right you have to have the templates all outside the folder you are trying to do the [listfiles] on. I might be mistaken about that part. Never tried 2 above so I can't help you with that part :)We do use list files from our intranet side all the time to display to screen but not in tables all our images and banners. So we don't create duplicate images of something already on the site. (which we have done several times (sigh) before [listfiles] came along. Here is the simple code snip we use which we find very valuable. I suggest this simple process to any webmaster who has images scattered in various folders and wants to make sure they have no duplicates or to see which one they want to use on various pages.[ListFiles /banners] [showif [isfile]=T]

filename: [filename]
size in bytes: [size]

[/showif] [/listfiles] Possible 4th problem The banners folder is on our webstar root. The template the looks in the folder is several folders deep inside our protected intranet.The docs read [listfiles /banner/] (with a trailing slash) With the trailing slash if it was on the webstar root no dice. Without the trailing slash it works just peachy.I think that might be another bug that I never reported (oops). But somebody else should confirm this.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Three new problems, maybe a fourth (Kenneth Grome 1997)
  2. Re: Three new problems, maybe a fourth (grichter@panavise.com (Gary Richter) 1997)
  3. Re: Three new problems, maybe a fourth (Kenneth Grome 1997)
  4. Re: Three new problems, maybe a fourth (grichter@panavise.com (Gary Richter) 1997)
>I found three 'problems' that affect my WebCat site today ... > >1- RequiredFields does not work! I was counting on using this in one of my >append forms, but it doesn't do anything at all. I thought it was supposed >to generate some kind of default template that lists the fields which were >required but that did not have anything entered into them, but it doesn't >do anything from what I can see ... :(It works fine for me like thisIt must be declared before you get the the variable in this case form.body This is on the input page not the [append] page> >2- If the listfiles context looks at a folder that has no files in it, >WebCat produces an error saying that the path to the listfiles folder is >wrong ...when actually the path is correct! If you're going to use this >feature, make sure you put at least one file inside the folder to prevent >this error ... :) > >3- Apparently you cannot do a [showif] inside a [listfiles] context in >order to display only certain listfile items ... or maybe you can but it >just won't work if you do it inside a table. Unfortunately I need it inside >the table ...Sorry but I erased my stuff using list files since I am in the process of writing my download directory using templates and a database with no [listfiles]. But I know when I was trying to figure out away to navigate back up the folders instead of down (that was easy going down), I had a ton of showif's embedded all over the place besides the normal [showif [isfolder]=T] inside tables. Can you post your snip-it. >I put a showif context inside a listfiles context, and all this went inside >a table. Unfortunately, all the HTML after the listfiles context does *not* >get sent to the browser, so the table does not get displayed at all ... :( I regards to this I was using the process of going down in the folder levels by creating a template with the same name as the folder and doing another listfiles inside that all using something off the top of my head like this[showif [isfolder]=T] Goto Catalog directorySo I had a folder in the directory I was pointing [listfiles] at name catalog So they click on the hotlink and launched another template which looked inside that folder In this case I had a template catalog.tmpl.Now if I remember right you have to have the templates all outside the folder you are trying to do the [listfiles] on. I might be mistaken about that part. Never tried 2 above so I can't help you with that part :)We do use list files from our intranet side all the time to display to screen but not in tables all our images and banners. So we don't create duplicate images of something already on the site. (which we have done several times (sigh) before [listfiles] came along. Here is the simple code snip we use which we find very valuable. I suggest this simple process to any webmaster who has images scattered in various folders and wants to make sure they have no duplicates or to see which one they want to use on various pages.[ListFiles /banners] [showif [isfile]=T]

filename: [filename]
size in bytes: [size]

[/showif] [/listfiles] Possible 4th problem The banners folder is on our webstar root. The template the looks in the folder is several folders deep inside our protected intranet.The docs read [listfiles /banner/] (with a trailing slash) With the trailing slash if it was on the webstar root no dice. Without the trailing slash it works just peachy.I think that might be another bug that I never reported (oops). But somebody else should confirm this.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

why .HTML pages no processing? - More Info (2000) Re:Merging databases (1997) installing webcatalog problem. HELP! (1998) Database Updates (1997) Credit card processing - UK (1997) HTML Editors (1997) Formatting of email on NT (1998) Changes to the List (1997) [WebDNA] Client wants backup copy of site (2010) Instructions for Digest (1997) WebDNA tables and commas (2004) Nested search (1997) Configuring E-mail (1997) re: [addlineitem] working almost (1997) webcat page crashes MSIE 5 on mac (2000) RE: what characters are replaced for tab and CR? (1998) Need help with [cart] (2000) [Sum] function? (1997) Emailing html (1998) Grant, please help me ... (1997)