Re: [WriteFile] problems

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10898
interpreted = N
texte = >I'm really confused at this point. We have about finished a big site >that will give an unlimited number of users access to a database and a >library of templates so they can render their pages to disk at will so >their pages will be found by the search engines. And it seems to be >working fine and WebStar has no problem serving these rendered pages >regardless of the file type issue. So will this or won't this approach >work??Karl,Your approach will work fine ... for now.What Grant was referring to was his belief that WebCat2 was creating [writefile] files with a creator code of WWW‡ ... which it is not ... at least not yet. This means every [writefile] created by the current version of WebCat2 can be served, unless you make the [writefile] context put something like [protect group1] in that file and name the file with a suffix .tmpl so WebSTAR doesn't bypass WebCat2 and serve it directly.The trick with WWW‡ is simple: That's the creator code for WebSTAR files, and WebSTAR doesn't serve its own files ... so *IF* WebCat2 were actually creating files with a creator code WWW‡, then WebSTAR could *NOT* serve those files.Grant's talking about making this an option with [WriteFile] in an upcoming version. Here's my concept for a very flexible solution to this issue. First, add two new preference lines to the WebCatalog Prefs file as follows:writefileType TEXT writefileCreator ttxtNext, teach WebCat2 to understand two new parameters for the [writefile] context: type and creator ... and make sure that these parameters are optional. Once this is done, then this:[writefile file=filePath] text of file here [/writefile]would create a file with type TEXT and creator ttxt ...but this:[writefile file=filePath&type=ttro&creator=WWW‡] text of file here [/writefile]would create a file with type ttro and creator WWW‡.Sincerely, Ken Grome .......... ken@iav.com .......... :) Associated Messages, from the most recent to the oldest:

    
  1. Re: [WriteFile] problems (Christer Olsson 1997)
  2. Re: [WriteFile] problems (Grant Hulbert 1997)
  3. Re: [WriteFile] problems (Christer Olsson 1997)
  4. Re: [WriteFile] problems (Karl Schroll 1997)
  5. Re: [WriteFile] problems (Kenneth Grome 1997)
  6. Re: [WriteFile] problems (Grant Hulbert 1997)
  7. Re: [WriteFile] problems (Grant Hulbert 1997)
  8. Re: [WriteFile] problems (Grant Hulbert 1997)
  9. Re: [WriteFile] problems (Karl Schroll 1997)
  10. Re: [WriteFile] problems (Kenneth Grome 1997)
  11. Re: [WriteFile] problems (Grant Hulbert 1997)
  12. Re: [WriteFile] problems (Karl Schroll 1997)
  13. [WriteFile] problems (Karl Schroll 1997)
  14. Re: [WriteFile] problems (John Hill 1997)
>I'm really confused at this point. We have about finished a big site >that will give an unlimited number of users access to a database and a >library of templates so they can render their pages to disk at will so >their pages will be found by the search engines. And it seems to be >working fine and WebStar has no problem serving these rendered pages >regardless of the file type issue. So will this or won't this approach >work??Karl,Your approach will work fine ... for now.What Grant was referring to was his belief that WebCat2 was creating [writefile] files with a creator code of WWW‡ ... which it is not ... at least not yet. This means every [writefile] created by the current version of WebCat2 can be served, unless you make the [writefile] context put something like [protect group1] in that file and name the file with a suffix .tmpl so WebSTAR doesn't bypass WebCat2 and serve it directly.The trick with WWW‡ is simple: That's the creator code for WebSTAR files, and WebSTAR doesn't serve its own files ... so *IF* WebCat2 were actually creating files with a creator code WWW‡, then WebSTAR could *NOT* serve those files.Grant's talking about making this an option with [writefile] in an upcoming version. Here's my concept for a very flexible solution to this issue. First, add two new preference lines to the WebCatalog Prefs file as follows:writefileType TEXT writefileCreator ttxtNext, teach WebCat2 to understand two new parameters for the [writefile] context: type and creator ... and make sure that these parameters are optional. Once this is done, then this:[writefile file=filePath] text of file here [/writefile]would create a file with type TEXT and creator ttxt ...but this:[writefile file=filePath&type=ttro&creator=WWW‡] text of file here [/writefile]would create a file with type ttro and creator WWW‡.Sincerely, Ken Grome .......... ken@iav.com .......... :) 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:

WebCat/CyberStudio Compatibility (1998) Removing [showif] makes a big difference in speed (1997) MacWorld NY (2000) Store builder question (2003) CMS - Formatting Content (2004) emailer (1997) any suggestions for creating a multi-lingual site? (1999) Umm...about those log files? (Off Topic) (1997) Where is f2? (1997) authenticating a second user, the sequel (1997) Exclamation point (1997) [WebDNA] fastcgi 7+ & [cart]? (2010) [OT] Happy Turkey Day! (2003) tmpl Vs DB (1999) Claris HomePage messes up the code (1997) SMSI (Scott) clues?? Bug fixes for next WebDNA release (2005) Error:Too many nested [xxx] contexts (1997) [WebDNA] WebDNA 8 (2014) WebCat2 - Getting to the browser's username/password data (1997) Ghostly cached webpage (2000)