Wagtail
v2.9.3
Getting started
Usage guide
Page models
Writing templates
Using images in templates
Search
Snippets
Freeform page content using StreamField
Permissions
Advanced topics
Reference
Support
Using Wagtail: an Editor’s guide
Contributing to Wagtail
Release notes
Wagtail
Docs
»
Usage guide
Edit on GitHub
Usage guide
¶
Page models
An example Wagtail page model
Writing page models
Template rendering
Inline models
Working with pages
Tips
Writing templates
Templates
Static assets
Template tags & filters
Wagtail User Bar
Varying output between preview and live
Using images in templates
More control over the
img
tag
The
attrs
shortcut
Alternative HTML tags
Images embedded in rich text
Output image format
Background color
JPEG image quality
Search
Indexing
Searching
Backends
Indexing
Searching
Backends
Snippets
Snippet Models
Including Snippets in Template Tags
Binding Pages to Snippets
Making Snippets Searchable
Tagging snippets
Freeform page content using StreamField
Using StreamField
Basic block types
Structural block types
Example:
PersonBlock
Template rendering
BoundBlocks and values
Custom editing interfaces for
StructBlock
Custom value class for
StructBlock
Custom block types
Migrations
Permissions
Page permissions
Image / document permissions