You can now use any valid content type you want to add to the table, as long as you appropriately configure it as binary or not (i.e. text). You can use Static Resources or regular Resources (aka Documents) to represent or construct them dynamically with Snippets and/or Plugins, and you can even import entire static sites into the tree, including HTML, CSS, JS, Word Docs, PDFs, etc.
Interesting, I’d like to know more about the possibilities of using this.
Has anyone used a setting other than HTML?
If you wanted to provide a dynamic, snippet-driven javascript (say, JSON data), or dynamic CSS.
Under what circumstances would you want to have a document that contained nothing but JS or CSS, for example.
Some browsers (safari) don’t like this, and throw warnings.
I’ve already used documents to hold straight text without changing the content type and it worked fine.
OK, I think I get it. I’m seriously considering "this issue is beyond the scope of this book."
Quote from: BobRay at Mar 04, 2009, 10:49 PMIf you wanted to provide a dynamic, snippet-driven javascript (say, JSON data), or dynamic CSS.
Under what circumstances would you want to have a document that contained nothing but JS or CSS, for example.
The MODx Package Management in Revo connects to Providers that a Resources with a .js content type, and a snippet call in them to generate the JSON.

I’m confused, but not *that* confused. I’d never deliver straight text to a browser. I meant I had stored straight text in a Doc and parsed it in a snippet in another Doc (e.g. EZfaq and, in the old days, SPForm).
Some browsers (safari) don’t like this, and throw warnings.
I’ve already used documents to hold straight text without changing the content type and it worked fine.
Ok, that gets me a closer, but I still don’t see what that setting actually does or what an end user might do with it.
Under what circumstances would you want to have a document that contained nothing but JS or CSS, for example.
I’ve already used documents to hold straight text without changing the content type and it worked fine.
Is it at all likely that a typical user would ever use any setting other than HTML?It is indeed.
I’ve used this on occasion for stylesheets. It’s a very simple way of delivering stylesheets where I wanted modx tags to be parsed without having to embed the styles in the document itself .