Replies: 2 comments
-
The yaml code is not processed by Twig, so you cannot use variables in there. The only method to pass the boxes data to a component is currently by fetching it in the component itself: If you control the components logic, this is rather easy: It is probably also possible to listen to a specific October Event that is triggered before the component is run and access the data this way. |
Beta Was this translation helpful? Give feedback.
-
Ah, I have also tried setting the code in the partial like so, as that's actually documented this way in the October docs:
That also doesn't work. I have now resorted to creating a custom component that extends the other component and overrides the necessary method + bunch of symlinks for the component markup and assets:
|
Beta Was this translation helpful? Give feedback.
-
When using a component inside a box, I cannot pass any attributes to the component from the box:
What is the suggested method to pass on form field to components?
Beta Was this translation helpful? Give feedback.
All reactions