BlockComponent blocks are not available in BlockEditor
I created blocks using
php artisan twill:make:componentBlock name
as per documentation, but none of them are available in block editor. I think I set up BlockEditor as it should be BlockEditor::make()->blocks(['Columns', 'text', 'imagetext', 'image'])
.
Do I need to register BlockComponents somewhere?Z
ZiPavlin•338d ago
OK, I solved it. Without changing block group the default
app
is used. When Twill creates Block from ComponentBlock newly created block's name is set as <group>-<title>
. This means that blocks as I was setting it in BlockEditor don't exist.
TL;DR: Block names need to be set as <group>-<title>
not <title>
in BlockEditor. For example: BlockEditor::make()->blocks(['app-columns', 'app-text', 'app-imagetext', 'app-image'])
1.4KMembers
View on DiscordWant results from more Discord servers?
More PostsSlows down the page after saving the @formConnectedFields fieldGood afternoon
I have several roles to which I want to attach the ability to select certain actionsChecked checkboxes by defaultGood afternoon (morning)! I use the Multiple Checkboxes field
How can I make certain fields checkedDefine Settings-Views inside a package>capsuleIs there a way to configure a settings related view inside a package capsule? I couldn't find somethDatePicker not updating or incorrectly updating fieldHaving a weird issue with the DatePicker field which seems to have popped up in the last few weeks o