Block Classes not triggered #1623
Replies: 4 comments 6 replies
-
Hey @michaeljcoyne , You should not need to print getData, basically everything you return from the getData method will be available as a variable. |
Beta Was this translation helpful? Give feedback.
-
@haringsrob I am just trying to get this working. The print_r($data); die; Just means it is not loading for me. |
Beta Was this translation helpful? Give feedback.
-
Twill version 2.8.0 namespace App\Twill\Block; Class path: app/Twill/Block/RepeaterAgenda.php Block path: resources/views/admin/blocks/repeater_agenda.blade.php
|
Beta Was this translation helpful? Give feedback.
-
Hey @michaeljcoyne, You did everything according to the docs, which is perfect. However, I noticed that the most recent docs are not yet live which is why it is not working. Everything is fine but you do need to suffix the name of the block class with
I will make sure that docs are updated. |
Beta Was this translation helpful? Give feedback.
-
Hi
Looking at the docs
https://twill.io/docs/block-editor/rendering-blocks.html#modifying-block-data
I have a block class file in correct namespace and a block blade file.
Set up as instructed.
Ran twill:blocks and build.
cleared cache
tried to print out getData(); and then die in my block class.
It is not triggered.
Is there a step I am missing?
Beta Was this translation helpful? Give feedback.
All reactions