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

Make BlockManager filterable #15265

Open
swissspidy opened this issue Apr 30, 2019 · 3 comments
Open

Make BlockManager filterable #15265

swissspidy opened this issue Apr 30, 2019 · 3 comments
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Comments

@swissspidy
Copy link
Member

Is your feature request related to a problem? Please describe.

In our project we have some blocks that are absolutely crucial to editing a specific custom post type.

The BlockManager allows disabling all blocks, including the crucial ones. Doing so would lead to unexpected behavior.

Describe the solution you'd like

There should be a way to prevent individual block types from being disabled in the block manager.

In addition to that, or as an alternative, there could be a way to completely disable the block manager.

If you have a custom post type with only two registered custom block types that are crucial to editing the post, it makes no sense to offer the block manager at all.

Describe alternatives you've considered

Hiding the block manager or individual blocks in the block manager via CSS is the only possible alternative I see at the moment. Which is not a good alternative IMO.

@gziolo
Copy link
Member

gziolo commented Oct 29, 2019

Are there more issues like that? If we were to offer this kind of functionality, we should come up with a general-purpose solution that would allow us to filter out all menu items and groups.

@edisonake
Copy link

I have been trying to figure out a solution for this same issue and was using the CSS approach to hide the block manager. Additionally though, I need to hide it based on user role for my project, so I think a general-purpose solution like you mentioned would be really great if menu items and groups could be hidden based on user role or post type.

@skorasaurus skorasaurus added the [Package] Components /packages/components label Nov 8, 2021
@skorasaurus
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants