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

Allow Site Editing blocks on the Pattern Creator #489

Closed
priethor opened this issue May 5, 2022 · 2 comments
Closed

Allow Site Editing blocks on the Pattern Creator #489

priethor opened this issue May 5, 2022 · 2 comments
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview

Comments

@priethor
Copy link

priethor commented May 5, 2022

What problem does this address?

Currently, the Pattern Creator seems to be based on the Post Editor, which limits the type of blocks that can be used. As of Gutenberg 13.2, this excludes the Template Part block from the Pattern Creator, but in upcoming Gutenberg versions, more site editing blocks might be hidden from the Post Editor.

What is your proposed solution?

There are different ways to allow these site editing blocks, for instance:

  • Using the Site Editor in the Pattern Creator.
  • Customize the Pattern Creator to include certain blocks specifically
@ryelle
Copy link
Contributor

ryelle commented May 5, 2022

The pattern creator uses a combination of the site editor packages and the post editor context, so how to work around that depends on how these blocks are hidden.

The creator already disables some blocks explicitly #23 because we can't control the data used to populate them (ex, Site Title, Page List) or they require permissions that non-user wporg users don't have (ex, Navigation). It also excluded the Template Part block before that was a core thing, since we don't have any template parts set up (and people copying the patterns to their sites wouldn't have those template parts).

@ryelle ryelle added the [Component] Pattern Creator Anything related to the pattern front end editor or preview label May 5, 2022
@ryelle
Copy link
Contributor

ryelle commented Sep 15, 2022

These have been added in #505

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
None yet
Development

No branches or pull requests

2 participants