Support subsets of block types in block templates #8142
Labels
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Type] Enhancement
A suggestion for improvement.
As a theme and plugin developer, I want to be able to define positions in block templates that are restricted to a subset of block types so that I can maintain structure in page templates while still supporting flexibility for similar media.
When defining block templates, I've found myself wanting to support multiple block types in a template position, which as best I can tell is not yet possible. A straightforward example of this is defining a region in a post that can be either an image or a video.
Examples
This is an example of one option for how we might define a region that could be either an image or a video, using a new block type
block-set
:The text was updated successfully, but these errors were encountered: