Braunson
Braunson
TCTwill CMS
Created by Braunson on 10/17/2024 in #👊support
Limiting BlockEditor blocks? Possible?
Is it possible to limit block editor blocks somehow? i.e. I have a dynamic column block (i.e. a seciton you can add multiple 'columns' in it up to 4.
BlockEditor::make()
->name('columns_content')
->label('Columns Content')
->blocks([
ColumnContentBlock::class,
]),
BlockEditor::make()
->name('columns_content')
->label('Columns Content')
->blocks([
ColumnContentBlock::class,
]),
I want to limit it so that a max of 4 ColumnContentBlock items can be used within the element.
8 replies