Reputation: 13
How do I create my own subclass of cms.models.pagemodel.Page
, to add some custom fields, template and logic to it?
I can't find where I would register it so that it appears in the normal page tree.
I'm using a PageExtension
for now, but I would prefer to have my own class.
Upvotes: 0
Views: 13
Reputation: 850
A page extension is the documented and correct way to go.
The Page
model (together with the TreeNode
model) defines the page tree. Every page is part of the page tree.
In the upcoming version 4.2 of django CMS the page model will change for improved efficiency.
Upvotes: 0