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 ... atleast not yet. This means every [writefile] created by the current versionof WebCat2 can be served, unless you make the [writefile] context putsomething like [protect group1] in that file and name the file with asuffix .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 actuallycreating files with a creator code WWW‡, then WebSTAR could *NOT* servethose files.Grant's talking about making this an option with [WriteFile] in an upcomingversion. 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 TEXTwritefileCreator ttxtNext, teach WebCat2 to understand two new parameters for the [writefile]context: type and creator ... and make sure that these parameters areoptional. 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:
>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 ... atleast not yet. This means every
[writefile] created by the current versionof WebCat2 can be served, unless you make the
[writefile] context putsomething like [protect group1] in that file and name the file with asuffix .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 actuallycreating files with a creator code WWW‡, then WebSTAR could *NOT* servethose files.Grant's talking about making this an option with
[writefile] in an upcomingversion. 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 TEXTwritefileCreator ttxtNext, teach WebCat2 to understand two new parameters for the
[writefile]context: type and creator ... and make sure that these parameters areoptional. 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:
lazy programming (2000)
Round up prices (2000)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
6.1 Patch - Form Data Back Button Issue (2006)
docs for WebCatalog2 (1997)
Associative lookup style? + bit more (1997)
[include ...] behavior (1997)
Running _every_ page through WebCat-error.html (1997)
PCS Frames (1997)
New Beta Documentation (1997)
Newbie problem blah blah blah (1997)
Shopping carts and reloading pages (1997)
Orderfile Question (2003)
Automatic thumbnail images (1998)
multi-paragraph fields (1997)
[OT] HTML, HTML docs (2001)
External DBs for webcat on maco os (2001)
two domains and one cart and database (2000)
Re:listfiles-looking for slick solution (1997)
Help! WebCat2 bug (Ben's input) (1997)