Skip to content

Create SlotFill pattern for inserting Panels where Metaboxes reside. #49583

Open

Description

What problem does this address?

I was looking for a way to insert a Panel below the post content editing space where usually the metaboxes are rendered. Here's the screenshot of the same for reference.
image

There are cases when we want the UI to be span in the most available width possible, for example, inserting a rich text editing field or multiple tabbed form. Squeezing them in the Sidebar sometimes leads to compromises of all sort. It'd be nice if we have a choice to either extend the editor on the side or the bottom, just like the metaboxes.

As of now, this section of the editor is used only to provide backwards compatibility for the old metaboxes. The implementation, as I've read here, https://developer.wordpress.org/block-editor/how-to-guides/metabox/#backward-compatibility uses form actions to save the data.

What is your proposed solution?

The solution is to create a slotFill pattern to extend the area of the metaboxes just like the EditSiteSidebarInspector or PluginPostStatusInfo. One place we can wrap with the SlotFill pattern is

<div className="edit-post-layout__metaboxes">
<MetaBoxes location="normal" />
<MetaBoxes location="advanced" />
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions