Quote from: OpenGeek at Sep 30, 2009, 08:15 AM
Quote from: BobRay at Sep 29, 2009, 11:45 PM
But in my scenario, you wouldn’t get that behavior unless you specifically asked for it by re-setting system settings to "match parent" which wouldn’t have to be the default. It seems to me that the result would be the same, just easier and faster.
Also, my way would let you to easily control the editor and published status for subsections of the site which would be a pain with a plugin.
It may be easier, but it would change the whole way those system settings work to display that directly. I don’t want that to happen. Matching a parent or grandparent or ultimate parent is a calculation, not a setting. Thus, a plugin.
Fair enough. But I realize that I’ve been unhappy with the way both published and Richtext are handled for some time. I’m constantly running into cases where the default behavior isn’t what I want and I’d need a complex plugin and some TVs to get what I want.
Consider the extremely commmon situation where you want documents in some parts of the site to be published by default and those in other parts unpublished by default and the same with rich text. The system settings won’t help you (and in fact, could get in your way). This kind of granular functionality should be easy to accomplish in MODx, IMO, without forcing the user to create or find a plugin, then configure it to deal with different parts of the site, possibly by creating and setting TVs.
I think my first choice would be to simply have every *new* page (however created) inherit the rich text and published values from its immediate parent. For me, this was the expected behavior for objects in a tree and it took me a while to realize that it wasn’t the case. I don’t see any down side to this although maybe I’m missing something. It would be great to be able to say, "Do you want new docs published by default in a section of the site? Put them in a published container document." This seems a lot better, IMO than trying to explain how to create and configure a plugin to do the same thing.
It shouldn’t interfere with any existing code that explicitly sets those values on save. The only issue I see would be whether to get rid of the system settings or keep them and decide how they would interact with the default behavior. It might be useful to have user settings that would override the default behavior (e.g. a user whose work is never published or a user who always wants the RTE).