Inline-Repeater & Medias
How can i use Form Builder Inline-Repeater with Medias field?
I tried to implement it like this:
it can successfully save sth like
medias: {…somedata}
inside the inline-repeater json columns & also role key_visuals|0|image
in twill_mediables
table,
But when i reload the form, it cannot retrieve the image and show it on the Medias field, other input fields in the json columns works perfectly fine except the Medias field,
I don’t know how to add to $mediasParams in the Model so i leave it blank,
I added ‘key-visuals’ => ‘array’ into $cast already,
I did the same setup of HandleJsonRepeaters
in the HomepageRepository.php
same as other working modules (InlineRepeater without Medias)
Anyone know how to modify the Controller / Model of my module in order to make this work?
Or Medias is just not well-supported for Inline-Repeater at this point?0 Replies