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?
1 Reply
ZiPavlin
ZiPavlinOP2y 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'])
Want results from more Discord servers?
Add your server