Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is spun off from #2831936-177: Add "File" MediaSource plugin, quoted here for convenience:
It needs follow-up to discuss the set to add 'odf' and cover with test this defaults
The File media source plugin should probably set up its source field to accept Open Document format(s) like ODF, ODT, and whatever else makes sense. So here is an issue to discuss and implement that :)
Postponed on #2831936: Add "File" MediaSource plugin.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2884383-5.patch | 854 bytes | Wim Leers |
#4 | 2884383-4.patch | 836 bytes | Wim Leers |
Comments
Comment #2
Wim Leers#2831936: Add "File" MediaSource plugin landed!
Comment #3
Wim LeersAccording to https://en.wikipedia.org/wiki/OpenDocument:
Added all of those.
Comment #4
Wim LeersNow added support for https://en.wikipedia.org/wiki/IWork:
.pages
,.numbers
and.key
.Comment #5
Wim LeersAnd finally, this only supported
.doc
and.docx
. What about.xls
+.xlsx
and.ppt
+.pptx
? Added those too.Comment #6
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedIt would be great if we could have a configuration section at the back-end, so that according to the need, user can enter different formats.
Correct me if I am wrong.
Comment #7
phenaproximaThat already exists as part of the Field UI :) Although in this case the field is locked to prevent deletion, so I don't know if the user is allowed to change the settings.
In any event, we are aware of that ask and have a follow-up issue opened somewhere in which we will address it :)
Comment #8
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedThanks @phenaproxima.
#5 Looks good to me. +1 to RTBC
Comment #9
phenaproximaI agree. Tests have passed, and I personally don't see any reason to add additional test coverage for this. RTBC.
Comment #11
catchCommitted/pushed to 8.4.x, thanks!
Comment #12
Gábor Hojtsy@Dinesh18: we have #806102: Locked fields can change the widget but not settings to figure out how to change settings on a locked field :)
Comment #13
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedThanks @Gábor Hojtsy. I will have a look and try to contribute on it.