From 50b70219d9df9580258f2503d846bf8069583f75 Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Wed, 7 Feb 2024 10:58:44 -0800 Subject: [PATCH] Make sure the settings panel is listed in tabbed interface examples --- CHANGELOG.txt | 1 + docs/advanced_topics/customisation/page_editing_interface.md | 2 ++ docs/releases/6.1.md | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4913933ca0..c0d57f7bb7 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -12,6 +12,7 @@ Changelog * Fix: Ensure that unit tests correctly check for migrations in all core Wagtail apps (Matt Westcott) * Fix: Correctly handle `date` objects on `human_readable_date` template tag (Jhonatan Lopes) * Docs: Add contributing development documentation on how to work with a fork of Wagtail (Nix Asteri, Dan Braghis) + * Docs: Make sure the settings panel is listed in tabbed interface examples (Tibor Leupold) * Maintenance: Move RichText HTML whitelist parser to use the faster, built in `html.parser` (Jake Howard) * Maintenance: Remove duplicate 'path' in default_exclude_fields_in_copy (Ramchandra Shahi Thakuri) * Maintenance: Update unit tests to always use the faster, built in `html.parser` & remove `html5lib` dependency (Jake Howard) diff --git a/docs/advanced_topics/customisation/page_editing_interface.md b/docs/advanced_topics/customisation/page_editing_interface.md index f9ede8de0b..e0fe802f94 100644 --- a/docs/advanced_topics/customisation/page_editing_interface.md +++ b/docs/advanced_topics/customisation/page_editing_interface.md @@ -26,6 +26,7 @@ class BlogPage(Page): ObjectList(content_panels, heading='Content'), ObjectList(sidebar_content_panels, heading='Sidebar content'), ObjectList(Page.promote_panels, heading='Promote'), + ObjectList(Page.settings_panels, heading='Settings'), # The default settings are now displayed in the sidebar but need to be in the `TabbedInterface`. ]) ``` @@ -49,6 +50,7 @@ class FundingPage(Page): edit_handler = TabbedInterface([ ObjectList(shared_panels, heading='Details'), ObjectList(private_panels, heading='Admin only', permission="superuser"), + ObjectList(Page.settings_panels, heading='Settings'), # The default settings are now displayed in the sidebar but need to be in the `TabbedInterface`. ]) ``` diff --git a/docs/releases/6.1.md b/docs/releases/6.1.md index 8083a960c8..1503e49469 100644 --- a/docs/releases/6.1.md +++ b/docs/releases/6.1.md @@ -29,6 +29,7 @@ depth: 1 ### Documentation * Add contributing development documentation on how to work with a fork of Wagtail (Nix Asteri, Dan Braghis) + * Make sure the settings panel is listed in tabbed interface examples (Tibor Leupold) ### Maintenance