Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI for blockType and postType #609

Open
richtabor opened this issue Oct 16, 2023 · 0 comments
Open

Add UI for blockType and postType #609

richtabor opened this issue Oct 16, 2023 · 0 comments
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview

Comments

@richtabor
Copy link
Member

Page patterns are companions of blocks that together form a page layout, or design. They are leveraged within StartPageOptionsModal, as starter patterns you can use to quickly add whole page designs.

Registering a page pattern includes setting the blockType to core/post-content and setting the postType to `page. Here's how Twenty Twenty-Four does it. Block types are an array of blocks that the pattern is intended to be used with.

While we do have some behind-the-scenes workarounds here, for indicating core header and footer patterns, there is no interface.

I'd like to propose a method for registering a pattern's block type, and supported post type (post and page) within the pattern creation experience of the directory. That way a theme author can build headers, footers, and page designs in the pattern directory, and add them to themes via theme.json. Whereas the alternative is to include all of them within all themes individually.

@ryelle ryelle added the [Component] Pattern Creator Anything related to the pattern front end editor or preview label Mar 8, 2024
@ryelle ryelle added the [Type] Enhancement New feature or request label Apr 18, 2024
@ryelle ryelle removed the [Type] Enhancement New feature or request label Dec 11, 2024
@ryelle ryelle moved this to ⚠ On Hold/Blocked in WordPress.org Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview
Projects
Status: On Hold/Blocked
Development

No branches or pull requests

2 participants