Do block classes (not components) need to be registered somehow? #2361
Unanswered
stuartmcgill
asked this question in
Q&A
Replies: 1 comment
-
In the end I used a block component and this was easy to get working - I'd still be interested to find out what I was missing, but it's more of an academic question now as I think I'll use components from now on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm following the documentation on Validating blocks and would like to do some custom validation beyond what's available in the Blade templates.
My blocks are Blade templates, which I understand I can supplement with block classes as long as they're in the
App\Twill\Block
namespace. For now I'm just trying to get my new block service (in/app/Twill/Block
) to be called by Twill:Is there something else I need to do? My block is not being invoked (stepping through the code I can see that for videolink blocks the standard
Block
service is used instead).After inspecting the Twill code I tried adding some config in case this was a missing step in the documentation, but that just led to this error about a missing title (although there is one in the Blade file).
The Blade template is:
Thank you in advance for any guidance as to what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions