Page Models
- class x11x_wagtail_blog.models.ExtensibleArticlePage
ExtensibleArticlePage is the base class for blog articles. Inherit from ExtensibleArticlePage when and add your own
bodyelement. ExtensibleArticlePage are NOT creatable through the wagtail admin.- date
Date to appear in the article subheading.
- summary
The article’s summary. summary will show up in index pages.
- title_image
The image to use in the title header or section of the article.
- authors
About the author sections to include with the article..
- pre_body_content_panels = [<TitleFieldPanel 'title' with model=None>, <FieldPanel 'title_image' with model=None>, <FieldPanel 'summary' with model=None>]
Admin FieldPanels intended to be displayed BEFORE a
bodyfield.
- post_body_content_panels = [<FieldPanel 'authors' with model=None>, <InlinePanel with model=None>]
Admin FieldPanel s intended to be displayed AFTER a
bodyfield.
- has_authors()
Returns
Trueif this article has one or more ‘about the authors’ snippet.Falseotherwise.
- classmethod with_body_panels(panels)
A helper method that concatenates all the admin panels of this class with the admin panels intended to enter content of the main body.
- Parameters:
panels – Panels intended to show up under the “Title” and “Summary” sections, but before the ‘trailing’ sections.
- get_template(request, *args, **kwargs)
Returns the default template. This method will likely be removed in the (very) near future.
This method may be overridden (like all wagtail pages) to return the intended template.
- Deprecated:
Returns True if this page has related articles associated with it. Returns
Falseotherwise.
An iterable of related articles related to this one.
- class x11x_wagtail_blog.models.AboutTheAuthor
A snippet holding the content of an ‘About the Author’ section for particular authors.
These snippets are intended to be organized by the various authors of a website. Individual users may have several ‘about’ blurbs that they can choose depending on what a particular article calls for.
- author
A reference to the author this snippet is about.
- body
A paragraph or two describing the associated author.
- class x11x_wagtail_blog.models.RelatedArticles
You should never have to instantiate
RelatedArticlesdirectly. This is a model to implement the m2m relationship between articles.