menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Twill

Rapidly create a custom admin console that content publishers will love. Twill is an open source CMS toolkit for Laravel, crafted by AREA 17.

Channels
Team

Recipe: Form repeater that persists as JSON

August 4, 2020 at 1:38pm

Recipe: Form repeater that persists as JSON

August 4, 2020 at 1:38pm
I tried writing a simple recipe for Twill and posted it as a Gist on Github. I'm unsure if the documentation is clear enough. Any feedback would be appreciated!
This is handy! It uses a new feature in Twill 2.1. A repeater being used outside of a block and stored as a simple JSON with the record.
#twill-recipe

November 6, 2020 at 10:27am
Thanks for this. Is it possible to use these repeaters on a settings page?
like-fill
1

March 15, 2021 at 10:28am
Works like a charm, thank you. I noticed a issue, doesn't work with translated fields. Do you know a workaround? So far, i managed to overwrite the function getJsonRepeater from trait, but it's not the code i'm proud to share :).
Edited