https://twill.io logo
Hi. I have problem with creating new Block (twill ...
# ❓questions
m
Hi. I have problem with creating new Block (twill 3.0.0-rc4)... im following docs, created "article" block and I cant do it readable by Vue component in CMS. I allso try to append others from vendor\area17\twill\src\Commands\stubs\blocks\* but I see on frontend only two natives: image, text. I also try to move "article" block to views\twill directory and it didnt help. Any idea?
i
Hi @Marcin it seems like you are trying to use a nested block editor, or did you put the code for the block_editor field there just to show it on one screen?
in Twill 3 the views folder should be
twill
so your
article.blade.php
file should be under
resources/views/twill/blocks
I would recommend against using a block editor field that allows the article block if that field is inside the article block, as that would need an infinitely nested structure that seems a bit crazy
article block -> block editor -> article block -> block editor -> ... and so on
m
Thanks (im newbie here, and docs about Twill2 make me some mess)! I debugged a little and also found interesting config('twill.block_editor.use_twill_blocks') 🙂 Please have no worry about my recursion, its only test naming collision it will be block "article teaser".
2 Views