fluent_pages.pagetypes.fluentpage.models¶
The AbstractFluentPage class¶
-
class
fluent_pages.pagetypes.fluentpage.models.AbstractFluentPage(*args, **kwargs)¶ A
`FluentPage`represents one HTML page of the site.Note
If you really like to use the
layoutfield in our custom applications, inherit from this class. Otherwise, please usefluent_pages.integration.fluent_contents.models.FluentContentsPageinstead.This class is abstract, so it’s easy to reuse the same CMS functionality in your custom page types without introducing another table/join indirection in the database. Naturally, the same layout mechanism is used. In case the
layoutshould be handled differently, please consider building a variation of this page type application.Parameters: - id (AutoField) – Id
- polymorphic_ctype (ForeignKey to
ContentType) – Polymorphic ctype - parent (PageTreeForeignKey to
UrlNode) – Parent. You can also change the parent by dragging the page in the list. - parent_site (ForeignKey to
Site) – Parent site - status (CharField) – Status
- publication_date (DateTimeField) – Publication date. When the page should go live, status must be “Published”.
- publication_end_date (DateTimeField) – Publication end date
- in_navigation (BooleanField) – Show in navigation
- in_sitemaps (BooleanField) – Include in search engine sitemaps
- key (SlugField) – Page identifier. A unique identifier that is used for linking to this page.
- author (ForeignKey to
User) – Author - creation_date (DateTimeField) – Creation date
- modification_date (DateTimeField) – Last modification
- lft (PositiveIntegerField) – Lft
- rght (PositiveIntegerField) – Rght
- tree_id (PositiveIntegerField) – Tree id
- level (PositiveIntegerField) – Level
- urlnode_ptr (OneToOneField to
UrlNode) – Urlnode ptr - layout (ForeignKey to
PageLayout) – Layout - placeholder_set (PlaceholderRelation) – Placeholder set
- contentitem_set (ContentItemRelation) – Contentitem set
The FluentPage class¶
-
class
fluent_pages.pagetypes.fluentpage.models.FluentPage(*args, **kwargs)¶ A
`FluentPage`represents one HTML page of the site.Parameters: - id (AutoField) – Id
- polymorphic_ctype (ForeignKey to
ContentType) – Polymorphic ctype - parent (PageTreeForeignKey to
UrlNode) – Parent. You can also change the parent by dragging the page in the list. - parent_site (ForeignKey to
Site) – Parent site - status (CharField) – Status
- publication_date (DateTimeField) – Publication date. When the page should go live, status must be “Published”.
- publication_end_date (DateTimeField) – Publication end date
- in_navigation (BooleanField) – Show in navigation
- in_sitemaps (BooleanField) – Include in search engine sitemaps
- key (SlugField) – Page identifier. A unique identifier that is used for linking to this page.
- author (ForeignKey to
User) – Author - creation_date (DateTimeField) – Creation date
- modification_date (DateTimeField) – Last modification
- lft (PositiveIntegerField) – Lft
- rght (PositiveIntegerField) – Rght
- tree_id (PositiveIntegerField) – Tree id
- level (PositiveIntegerField) – Level
- urlnode_ptr (OneToOneField to
UrlNode) – Urlnode ptr - layout (ForeignKey to
PageLayout) – Layout - placeholder_set (PlaceholderRelation) – Placeholder set
- contentitem_set (ContentItemRelation) – Contentitem set
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶