Skip to content

Remove obsolete hard-coded publishing panel fields #440

Description

@benfroelich

wagtailmenus recreates wagtail's scheduled publishing (go-live and expiry) fields here:

menupage_settings_panels = [
MultiFieldPanel(
heading=_("Scheduled publishing"),
classname="publishing",
children=(
FieldRowPanel((
FieldPanel('go_live_at', classname="col6"),
FieldPanel('expire_at', classname="col6"),
)),
)
),
menupage_panel,
]

Furthermore MenuPage overrides, instead of appends to, Page's settings_panels:

class MenuPage(Page, MenuPageMixin):
settings_panels = menupage_settings_panels

So you end up with deprecated scheduled publishing fields and also excluded features such as privacy and comments which are now in a sidebar popout, at least in wagtail 4.1.1.

I believe the fix is to (1) append the wagtailmenus advanced menus fields to Page's settings_panels and (2) remove the duplicated scheduled publishing fields.

I am working on a PR now. Please let me know if I'm off on this. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions