-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Developer ExperienceIdeas about improving block and theme developer experienceIdeas about improving block and theme developer experience[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Nested / Inner BlocksAnything related to the experience of nested/inner blocks inside a larger container, like Group or PAnything related to the experience of nested/inner blocks inside a larger container, like Group or P[Type] EnhancementA suggestion for improvement.A suggestion for improvement.[Type] New APINew API to be used by plugin developers or package users.New API to be used by plugin developers or package users.
Description
What problem does this address?
There are instances where a block should only ever exist at the root level of the block editor. It should never be nested within a Group or any other InnerBlocks area. Examples of this are things like the Page Header Template Part. Also when building custom blocks this is something that comes up here and there.
Often this is best paired with the supports.multiple option set to false so an editor can only insert the block once at the root level
What is your proposed solution?
Add a new Block Supports option that is essentially the opposite of ancestor or parent. Maybe it could even use the parent key just set to false.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Developer ExperienceIdeas about improving block and theme developer experienceIdeas about improving block and theme developer experience[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Nested / Inner BlocksAnything related to the experience of nested/inner blocks inside a larger container, like Group or PAnything related to the experience of nested/inner blocks inside a larger container, like Group or P[Type] EnhancementA suggestion for improvement.A suggestion for improvement.[Type] New APINew API to be used by plugin developers or package users.New API to be used by plugin developers or package users.