At the heart of the Content Management System lays the djpcms.models.Page and djpcms.models.BlockContent database models. A page, or better, the djpcms.models.Page.inner_template field is a container for one or several blocks, and each block has one or several contents. The number of blocks within a page is specified in by the djpcms.models.InnerTemplate.numblocks method.
The page model holds several information regarding pages in the sitemap.
Site to which the page belongs.
Name of the djpcms.views.appview.AppViewBase owner of the page. It can be empty, in which case the page is a flat page (not part of an application).
Page inner template is an instance of djpcms.models.InnerTemplate. It contains information regrading the number of blocks in the page as well as the layout structure.
Optional template file for rendering the page. If not specified the DEFAULT_TEMPLATE_NAME is used.
Integer flag indicating positioning in the site navigation (see djpcms.utils.navigation.Navigator). If set to 0 the page won’t be displayed in the navigation.
Parent page. If None the page is the site root page.
Name of the djpcms.views.appsite.ApplicationBase owner of the page. It can be empty, in which case the page is a flat page (not part of an application).
A block content object is responsible storing djpcms.plugins.DJPplugin and for maintaining their position in a djpcms.models.Page.
djpcms.models.Page holding self.
Integer indicating the block number within the page.
Integer indicationg the position of content within the content block.
The unique djpcms.plugins.DJPplugin.name of plugin in the content block.
djpcms.plugins.DJPplugin arguments as JSON string.
The unique djpcms.plugins.DJPwrapper.name of the plugin html-wrapper.
Optional title
If True (default is False) the block will be rendered only for non-authenticated users.
If True (default is False) the block will be rendered only for authenticated users.
utility functions. Return the class of the embedded plugin (if available) otherwise it returns Null
Render the plugin. This function call the plugin render function
Handle a POST request when changing app_page
Model for handling per-object permissions. An object which has at least one of this model instances associated with, will have permissions handled by this model only.
Provides a generic relation to any object through content-type/object-id fields.
Check permission for user