-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create way to manage shared blocks in bulk #7387
Comments
Yes, I like starting simple just with what wp-admin offers for bulk deleting before building custom UI in the block library. Could be just a "cog" icon in the shared blocks panel that links to that view. Not sure if we should disable edit for content, only allowing title edits and deleting. |
For me the shared blocks is one of the features who has most potential with Gutenberg. Being able to bulk edit them seems like a no brainer. In my world the best thing would be to let them be treated as any CPT, so you could assign taxonomies to them, set custom post statuses etc. For the project I'm working on we are already (at a very early stage) starting to run in to the problem of having too many shared blocks and no good way of dealing with them. |
Been experimenting with a few things here. Some notes:
I'm thinking the best path forward is to, for now, expose shared blocks in WP Admin and hackily hide the Edit and Add New buttons. If/when #7453 goes ahead we can revisit this and possibly allow shared blocks to be edited like a regular post. |
Sounds like a good initial path for me. Also, others can build on top of it if they want. |
Adding needs design here since we'd need to link to the page to manage the post type from the inserter. I imagine a cog button on the shared blocks panel or similar. |
For reference, here is how page builder plugins handle features similar to shared blocks: Divi Beaver Builder Elementor Oxygen |
This looks good to me. |
One thing, given it's at the bottom, it could include text next to the icon for clarity. |
After deleting 50+ reusable blocks today I can not stress enough the importance of at least some initial implementation of this. It doesn't need to be fancy in my world, just access to wp-admin/edit.php?post_type=wp_block would be plenty good to start with. My 5 cents :) |
It would be nice if there were a way of bulk managing shared blocks within the WP Admin. The main use case is for deletion: currently, one has to insert a shared block before it can be deleted. This makes deleting several shared blocks very cumbersome.
Some requirements:
Since shared blocks are implemented using a CPT, it might be possible to fulfil these requirements by simply linking users to
wp-admin/edit.php?post_type=wp_block
.cc. @mtias
The text was updated successfully, but these errors were encountered: