-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Improvements to Block Manager #15121
Comments
Would it be useful to allow more granular control for child blocks? I.e. disallow showing a block only as a child block of a specific block, but allow it as top-level block? UI can get pretty confusing tho, but perhaps at least in programmatic level? |
Probably, yes. I'd be inclined to not showing child blocks by default. Same way they are not shown in the top level inserter. |
yes, if a block is registered as:
then it should not appear at all in the manager. Since it can't be inserted by itself, it doesn't make sense to talk of as being enabled/disabled. |
That's a nice improvement. |
There's a good conversation about displaying the disabled blocks in the Block Directory repo. Thanks @melchoyce for the discussion reference and work. One such example is just communicating the search didn't have any results, but there are some disabled blocks. Mockup courtesy of @melchoyce If the user selects one of these diabled blocks, it automatically gets enabled. |
Looping in another issue that came up in forums: I know there are ways to turn on and off blocks, however, someone in the forums proposed adding more options to this and perhaps it's something worth exploring. I raise it here as a discussion point: Even just some constants or an array in wp-config would suffice for configuring which blocks are loaded, or even a function that can be added to functions.php. https://wordpress.org/support/topic/extends-the-power-of-wordpress/ |
As an added piece of feedback, I wonder if it would make sense to start offering some filtering options to the full list in the block manager. Thanks to the block directory and plugins creating more and more blocks, the average number of blocks per site is probably increasing. As the list gets longer, it becomes harder to quickly parse. Maybe it would make sense to offer more options to sort out blocks, such as filtering by plugin, for example. |
Sorry if this isn't the right place, but shouldn't the block manager be accessible from the left side menu on the backend? Like in Settings? That and the reusable blocks are really hidden. You can only get to them from the post editor. |
Hey, is there a php function to check a block is disabled by the block manager? I want to provide to load specific block styles, if specific blocks are disabled. |
Some ideas to improve the experience of the block manager:
The text was updated successfully, but these errors were encountered: