docs/releases/5.0.2.md
June 21, 2023
---
local:
depth: 1
---
MultipleChooserPanel (Matt Westcott)TitleFieldPanel for the page title fieldThis release introduces a new class, which is used by default for the page title field and provides the mechanism for synchronizing the slug field with the title. Before 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 behavior 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"),
]),
]