Replies: 1 comment
|
Hey @mcouvreur, I agree that the relationship between blocks/repeaters, and perhaps the overall workflow is underdocumented. Feel free to suggest any improvements. So your solution looks great if you want really granular control of how the repeater items are rendered. You can also define frontend views for your repeater items, just like blocks. Quick example — For context:
File structure: On the frontent, this would render the The first parameter of And this gives you full control for rendering, like you do in your example. Hope this can help! https://twill.io/docs/api/2.x/A17/Twill/Models/Behaviors/HasBlocks.html |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I had a hard time to find out how to render a repeater in a block.
This is the solution i found out after searching several posts, but couldn't find it in the docs. Is this the right way to do it? Would it be an option to explain it better in the docs?
Block select.blade.php:
Repeaters: select_item.blade.php:
Block rendering:
All reactions