Braunson
Braunson
TCTwill CMS
Created by Braunson on 10/17/2024 in #👊support
Limiting BlockEditor blocks? Possible?
With the block editor, I can pass in a Block class ColumnContentBlock where my fields are defined. I can then use that block class ColumnContentBlock elsewhere where needed however since BlockEditor doesn't support max, the solution to limit the # of block ColumnContentBlock that can be used is to use the InlineRepeater field. The downside with that is it does not accept a block ColumnContentBlock like BlockEditor does, instead I have to pull my field definitions out of the ColumnContentBlock class and into the InlineRepeater definition inside my .... ParentContentBlockThatContainsBlockEditorAsAField
8 replies
TCTwill CMS
Created by Braunson on 10/17/2024 in #👊support
Limiting BlockEditor blocks? Possible?
not a huge issue for my current use case but in the future if i want to re-use that custom sub-block elsewhere, i have to re-define the fields
8 replies
TCTwill CMS
Created by Braunson on 10/17/2024 in #👊support
Limiting BlockEditor blocks? Possible?
In order to limit the block editor block, i instead have to use a repeater. a repeater doesn't accept a class so i have to redefine the custom sub-block item fields in the repeater everywhere..
8 replies
TCTwill CMS
Created by Braunson on 10/17/2024 in #👊support
Limiting BlockEditor blocks? Possible?
Looks like to achieve what I want, I have to move my custom block into a inline repeater which isn't ideal for reusability..
8 replies