AdamCord
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
@ifox for future projects that is easy. the issue i have is that i have many records with existing repeater fields that work fine but now just wanted to add an image field as an extra. so basically no painless work around, I'd need to write some scripts to export the data in json and then store it differently in the relationship tables ?
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
@ifox you mentioned various possible workarounds, so the recommendation is to use the block editor. any others just so I know ?
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
I'm not using it in the block editor @ifox .... It's just in a very standard edit page that outside of the repeater has very basic fields. Does that answer your question ?
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
thanks for the response. Appologies I had missed the bit in your first response on this thread that it simply isn't supported. I had no idea about that. I wasn't trying to be unreasonable, I simply hadn't read that somehow. So your reasoning as to why it isn't supported makes sense although please understand that there is no reference to this in the documentation from what I see.. at least not when repeaters are discussed. So the assumption from my end was that repeaters would work with whatever standard twill field you add to them.
So I'm happy to provide a repository but to possibly save us both the time... can you just clarify what you are hinting at when you say that there are lots of other ways to resolve the problem? If there is a logical easy to use (from user's persective) work around more than happy to give it a go.
So I'm happy to provide a repository but to possibly save us both the time... can you just clarify what you are hinting at when you say that there are lots of other ways to resolve the problem? If there is a logical easy to use (from user's persective) work around more than happy to give it a go.
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
any change of assisting with this still? I'm desperate to get a fix to this and it seems to be something not document anywhere. 🙏
21 replies
TCTwill CMS
•Created by Aidas on 1/2/2024 in #👊support
Some fresh vibes would be nice :))
@ifox are there any other experts on the forum (esp peeps from area17?) that can help so I don't have to keep harrasing you 😉
6 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
Is there any chance of reviewing this briefly? I've updated the git hub to make even clearer as to where I am with this.
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
hi there is there anything you can suggest on this? I must be so close to getting it working as it's only the reading back of the saved data into the edit form that doesn't work
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
I should clarify, I haven't changed approach. Since the start I had this block editor setup in the twill config and that relates to the other code I posted on github. I may just be using the wrong terminology due to confusion with the functionality/things I've read. So naturally I'd like a solution that continues with the approach to avoid data loss of existing data. As I say in the github post, I'm very close to getting it working, I can make the values save to the json in my table fine... I believe that it's simply a case that the array I return via the repository isn't of the correct format for twill to setup the media image field in the form as already defined/populated.
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
my intention is simply to have a repeater element with multiple fields inside of it, and it's worked with this mechanism fine with various field types but now i need to add a single image field to each entry in the repeater
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
basically i have a block defined in twill.php
'block_editor' => [
'repeaters' => [
'rate' => [
'title' => 'Room Type',
'trigger' => 'Add room type',
'component' => 'a17-block-rate'
]
]
],
21 replies
TCTwill CMS
•Created by AdamCord on 11/8/2023 in #👊support
Can anyone help me get a single image/media field working within a json repeater ?
I may not actually be using json repeaters to tell you the truth. its code i was suggested to use some years back (i think by one of your team) on the old twill forum.
21 replies