Skip to content

Filtering of templates based on the supported blocks #2415

@enejb

Description

@enejb

We want to include block layout that are currently found on .com but we want to only offer layouts that have mobile supported blocks. So we need a way to filter out the layouts that contain unsupported blocks.

Describe the solution you'd like
This should be done via a query parameter (?supported_blocks=core/paragraph) that passes in the list of supported blocks that the editor currently supports.

Describe alternatives you've considered
We also considered passing a version and editor name to the endpoint. But that would mean that releasing the editor would would need an update to .com which we are trying to avoid.

Metadata

Metadata

Assignees

Labels

[Type] EnhancementImproves a current area of the editor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions