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.
I'd like to request fields for File objects. This could be used, for instance, for storing meta-data, audio transcriptions, video annotations, and the like. Ideally, we should also open fields to comments and other objects as well, but I'm sure that discussion's already happened. (Just familiarizing myself with the queue now.)
Comments
Comment #1
bjaspan CreditAttribution: bjaspan commented"Make object type 'foo' be fieldable" is not a feature request for the field system but for the 'foo' system. e.g.: File an issue for the Drupal comment system to make comments fieldable. I'll leave this open for now so you can re-assign it.
Comment #2
aaron CreditAttribution: aaron commentedok, thanks. reassigned now.
Comment #3
aaron CreditAttribution: aaron commentedI imagine that #391042: Fields for Comments will be similar to implement, so we should look at these in conjunction with each other.
Comment #4
drewish CreditAttribution: drewish commentedKarenS volunteered to help me write one of these at the code sprint on Saturday.
Comment #5
drewish CreditAttribution: drewish commentedwhoops misread the issue. i want a filefield in core...
Comment #6
drewish CreditAttribution: drewish commentedsorry, didn't mean to change the title
Comment #7
yched CreditAttribution: yched commentedThis has been revived in the Fieldable media "core conversation" at DC Chicago.
A small note, however, that this might require some changes to the way filefields are loaded. Currently, file_field_load() loads the entire 'file' entity from the stored fid. If files are fieldable, that might trigger infinite loops.
Comment #8
effulgentsia CreditAttribution: effulgentsia commentedThere's now a D7 contrib module, File Entity, that does this. It's still being refined. When it's a little more ready, we'll post a patch to get its functionality into D8 core, since in Dries's presentation at DrupalCon London, he mentioned better Media handling as one of D8's goals.
If anyone is interested in keeping tabs on what's currently being worked on related to other fundamental Media handling issues, check out our roadmap.
Comment #10
Dave ReidComment #11
indytechcook CreditAttribution: indytechcook commentedAlong with fields Have there been thoughts of making the file_entities revisionable?
Comment #12
Dave ReidSee #1241976: Mention the File Entity Revisions module in the projects page as a companion module..
Comment #13
rickvug CreditAttribution: rickvug commentedOut of interest, is there any chance that "fieldable files" or other parts of File Entity are still being targeted for Drupal 8? I'm also adding the "Killer End-User Features" tag as that is exactly what this change would be.
Comment #14
webchickAs you can see, no one's taken this on to work on it, so it looks like the answer is no. :)
Comment #15
rickvug CreditAttribution: rickvug commented@webchick Sometimes I miss all of those subscribe comments that would keep good ideas top of mind. :) I hear you that Drupal is a do-ocracy.
Comment #16
tsvenson CreditAttribution: tsvenson commented@rickvug: While the File Entity, and Media, modules have made an incredible amount of progress over the last year and a half, it is still far from ready to be included in core. It still need a lot of maturing to pass the tougher criteria's/restrictions governing core. It simply needs to stay in contrib until at least Drupal 9.
Comment #17
rickvug CreditAttribution: rickvug commented@tsvenson Thanks for the update, I appreciate it.
Comment #18
semei CreditAttribution: semei commentedAm I getting it right that I will need to wait for an 8.x release of File Entity Module in order to attach fields to files?
Comment #19
ParisLiakos CreditAttribution: ParisLiakos commentedyou can already attach fields on files with the file_entity module for drupal 7
Comment #20
semei CreditAttribution: semei commentedI know that, I'm just wondering what the state is for D8.
Comment #21
ParisLiakos CreditAttribution: ParisLiakos commentedah, yes then the answer to #18 is yes;)
Comment #22
semei CreditAttribution: semei commentedI know that, I'm just wondering what the state is for D8.Sorry my computer double posted this.Comment #23
semei CreditAttribution: semei commentedDoes anyone have any information if and when a D8 release of file_entity module is expected?
Comment #24
yched CreditAttribution: yched commentedSo yes, as far as core is concerned, this is D9 stuff...
Comment #25
Dave Reid@semei: When it's done. There is no timeline.
Comment #26
saltednutThis is possible for a point release. 8.1 maybe? I don't think we have to wait for D9. It shouldn't break any APIs if this Feature is added, imo.
Comment #27
Dave ReidComment #30
joseph.olstadIn D7 this is not in core, its in the contrib module file_entity which was originally part of the media 7.x-1.x module but now split into media 7.x-2.x and file_entity, file_entity in 7.x imho could be added to D7 core as its pretty stable now and very good even in multilingual.
For D8 this is a duplicate issue for adding 'media entity' to core.
#2831274: Bring Media entity module to core as Media module