Quote from: PaulGregory at Nov 07, 2006, 10:49 AMTo return to the "meta template" stuff: I know it’s just labels, but I’d rather documents were divided into DocumentTypes rather than PageTypes, as the document may not be a page, as has been pointed out in this thread.
DocumentType is nice, but just as everything is not a page, everything is not a document...
My initial problem about ContentType is the potential confusion with
content-type (as in text/html, text/css...etc).
Quote from: PaulGregoryIf we treat each and every variable on the Edit Document screen as a Document Variable, including Template, including whether it is Rich Text or not, including the content type and content itself, as well as any "Template Variables", then the next step leaps out.
Each DocumentType should be able to set the default values of all these variables - including Template.
This would override the variable’s own default value.
Now we’re talking !
That would be just plain awesome
Quote from: PaulGregoryThis would associate the DocumentType with the template as David (and others) would like, but still provides room for over-riding it on a per-document basis without losing a load of variables. But David’s users could still accidentally change the template.
Unless they are not allowed to (permission-wise)...
In fact I have always been a little weary of having end users changing templates at all.
I have to allow it because I use TVs a lot, and template change is required to load the proper content fields for a document, but I am 100% for the idea of having a DocumentType (or whatever we call it) and having end users change that and only that.
It doesn’t mean MODx had to provide an automatic way of assigning template to DocumentTypes (I talked about the InheritTemplate plugin, I imagine another could be created to do just that).
Quote from: PaulGregory So. Imagine next that as well as being able to set the default value, you can set whether these are editable...
Now here is another cool idea Paul, I love it !
And I love the concept behind it all. It articulates well, and it’s very MODx-ish.
Very probably Jason already has answers (with the 1.0 codebase) on several key items there for us...
Quote from: PaulGregoryPing! Suddenly you are able to hide much of the complexity of the editor from other users.. suddenly it’s much easier for people to use. If they’re adding news pages that will be listed via Ditto, they just don’t need to see all the Uses template, Menu title, Menu index, Show in menu, Document parent stuff. You could go further and decide what user groups / level of access can change some of the variables, and Document Type is a sensible thing to connect to security. I also think that nested DocumentTypes will be beneficial - I can think of times when inheriting values from another DocumentType would be useful.
Woosh now I am all excited about where this is all going, I am bookmarking your post here
Quote from: PaulGregoryNow, how much of all this is the MODx 1.0 way??
My thoughts exactly...