Use a custom repeatable field and create an element of type media.
This was mentioned in passing by @AndySDH in #22415 (comment) but wasn't super relevant to that issue so I'm moving it into it's own issue.
To make this work we either need to reload the subform field data out so that we can figure out what the type is and process it in the layout with that meta information. Alternatively we should store it with the field meta information prepended (which would be a b/c break but I'd argue the media field is right now broken as it should behave the same as the existing media field)
In the frontend the image is rendered (like the media custom field)
The image is not rendered (the path to the image is rendered as a string)
Labels |
Added:
?
|
Status | New | ⇒ | Discussion |
Status | Discussion | ⇒ | Information Required |
Category | ⇒ | Fields |
So there is an issue with repeatable fields.
We cannot get subforms into joomla 3.10 because its a new feature and there are no new features in 3.10
BUT.... could subforms be brought in to 3.10 or even 3.9.6 (3.9.5 is about to be packaged) as a bug fix and not a feature? As its replacing one way of doing something with another and fixes a bug, could it not be argued that its a bug/security fix and not a feature?!?
Just saying
@AndySDH so this Issue can be closed?
Technically yes... There is no point in fixing this if it's getting deprecated anyway...
But...
So there is an issue with repeatable fields.
We cannot get subforms into joomla 3.10 because its a new feature and there are no new features in 3.10
BUT.... could subforms be brought in to 3.10 or even 3.9.6 (3.9.5 is about to be packaged) as a bug fix and not a feature? As its replacing one way of doing something with another and fixes a bug, could it not be argued that its a bug/security fix and not a feature?!?
Just saying
You're preaching to the choir... I'm with you, I'd love if that was possible, we tried everything to get #22446 pushed in 3.9.x but they just don't want to do it :( I guess because it's a pretty big revamp and not just a small fix.
@HLeithner can you please decide as Release Lead 3.9?
I mean the things unusable. But it makes more sense to do a migration in j4 for subforms than try and fix stuff here
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-02 15:41:30 |
Closed_By | ⇒ | wilsonge |
As you might have seen in #22415 that you linked, the repeatable field is getting replaced by the subform field: #22446
And that already fixed this issue and it does render the media field.
That is if progress on that is made faster haha.
Please help with the testing to speed up the process as well :)