I have made a plugin
Cascading Templates (en) (
ja)
which enables layered(cascading) template structure. (BSD License)
Suppose the document has a template "t.outer.inner",
1) The plugin puts "t.outer.inner" into [*content*] of "t.outer" (if exists).
2) In the same way, "t.outer" (now contains "t.outer.inner") into "t"
(And so on in any deeper level.)
3) Finally, MODx merges "t" (contains "t" which contains "t.outer.inner") with the document content.
This plugin might be useful when you have a structure like below.
Page Frame template for common part of the entire web site.
Customized Template For Content Type A template, which may contain special navigation for content type A.
Customized Template For Content Type B template, which may have an image area specific for content type B.
etc.
If anyone noticed some bugs, please point it to me.
Thanks.