Skip to content

Theme blocks optimisations #882

Open
@stijns96

Description

@stijns96

1. Not able to not render the theme block element when no blocks are added.
I'd like to check e.g. {{ block.size }} or something like this to be able to ditch the render of the block (e.g. groups) to avoid dom rendering.

Image

2. Not able to limit the amount of blocks that can be added.
Add support for something like "max_blocks" or "limit" to prevent to much blocks.

Image

Checklist

  • I have checked and made sure that the proposal adheres to this plugin's principles

Additional context
Theme blocks are super powerful and really pleasant to work with, but it would be even better if is could a bit more flexible.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions