verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

(Per-)Block type count limits #112

Closed yoannisj closed 1 year ago

yoannisj commented 2 years ago

What are you trying to do? I often need to limit how many types a specific block can be used by content editors. Neo allows this, and I find it one of its neatest features. Here are a couple of use-cases I encountered in the past:

Vizy comes with other great features which offer better editor experience for modular content, and makes it a potential alternative to all of Neo, Matrix, Super-Table and Redactor fields. However, this feature from Neo would be greatly missed in both those cases.

What's your proposed solution? Add a minBlocks and maxBlocks setting for block types. Another great addition would be to allow a twig expression in these settings, so it can react to the field's context (e.g. the owner element).

engram-design commented 1 year ago

Added in 2.1.0