Closed billxinli closed 10 years ago
Yea, the only thing that really makes a page different from a document is the hierarchy and nested slug generation.
Merging these two might make life easier in the future, but I imagine it could be complicated at the moment.
The only thing that is different between Template and DocumentTemplate is that Template have exactly 1 html layout while documents can have 0 to many layouts (html, json, xml) I wonder if it makes sense to merge DocumentTemplate with Template and Document with Page.
Might look into single table inheritance.