ZiPavlin
TCTwill CMS
•Created by ZiPavlin on 5/24/2023 in #👊support
BlockComponent blocks are not available in BlockEditor
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'])
2 replies