Stefan
Stefan

Reputation: 13

How do I create a subclass of a Page in django-cms that will be displayed in the normal menu?

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

Answers (1)

Fabian
Fabian

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

Related Questions