Ability to exclude the blocks from Post Editor but include them in the Template Editor #40780
Labels
Developer Experience
Ideas about improving block and theme developer experience
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
In woocommerce/woocommerce-blocks#6342, the Mini Cart block is excluded from the Post Editor and included in other screens. But if the store admins edit a page template using the edit link in the Templates Panel (which opens a Template Editor), the popup editor doesn't include the Mini Cart block because the screen is still the post edit screen.
I tried using the editor context with the
allowed_block_types_all
filter to register blocks conditionally but it doesn't work with the embedded Template Editor, the filter is only fired for the initial load when the admins edit a post/page.What is your proposed solution?
A way to filter the blocks list for the embed Template Editor inside Post Editor.
The text was updated successfully, but these errors were encountered: