MomentumCMS / momentum_cms

https://github.com/MomentumCMS/momentum_cms
MIT License
4 stars 0 forks source link

Template == document template #48

Closed billxinli closed 10 years ago

billxinli commented 10 years ago

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.

Emerson commented 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.