Unreleased
---
local:
depth: 1
---
MultipleChooserPanel
(Matt Westcott)TitleFieldPanel
for the page title fieldThis release introduces a new [](title_field_panel) class, which is used by default for the page title field and provides the mechanism for synchronising the slug field with the title. Prior to Wagtail 5.0, this happened automatically on any field named 'title'.
If you have used FieldPanel("title")
directly in a panel definition (rather than extending Page.content_panels
as standard), and wish to restore the previous behaviour of auto-populating the slug, you will need to change this to TitleFieldPanel("title")
. For example:
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
# ...
content_panels = [
MultiFieldPanel([
FieldPanel("title"),
FieldPanel("subtitle"),
]),
]
should become:
from wagtail.admin.panels import FieldPanel, MultiFieldPanel, TitleFieldPanel
# ...
content_panels = [
MultiFieldPanel([
TitleFieldPanel("title"),
FieldPanel("subtitle"),
]),
]