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

bjaspan’s picture

"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.

aaron’s picture

Component: field system » file system

ok, thanks. reassigned now.

aaron’s picture

I imagine that #391042: Fields for Comments will be similar to implement, so we should look at these in conjunction with each other.

drewish’s picture

Assigned: Unassigned » drewish

KarenS volunteered to help me write one of these at the code sprint on Saturday.

drewish’s picture

Title: Fields for Files » File
Assigned: drewish » Unassigned

whoops misread the issue. i want a filefield in core...

drewish’s picture

Title: File » Fields for Files

sorry, didn't mean to change the title

yched’s picture

This 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.

effulgentsia’s picture

Title: Fields for Files » Make files fieldable
Version: 7.x-dev » 8.x-dev

There'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.

Dave Reid’s picture

Issue tags: +Media Initiative
indytechcook’s picture

Along with fields Have there been thoughts of making the file_entities revisionable?

Dave Reid’s picture

rickvug’s picture

Out 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.

webchick’s picture

As you can see, no one's taken this on to work on it, so it looks like the answer is no. :)

rickvug’s picture

@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.

tsvenson’s picture

@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.

rickvug’s picture

@tsvenson Thanks for the update, I appreciate it.

semei’s picture

Am 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?

ParisLiakos’s picture

you can already attach fields on files with the file_entity module for drupal 7

semei’s picture

I know that, I'm just wondering what the state is for D8.

ParisLiakos’s picture

ah, yes then the answer to #18 is yes;)

semei’s picture

I know that, I'm just wondering what the state is for D8. Sorry my computer double posted this.

semei’s picture

Does anyone have any information if and when a D8 release of file_entity module is expected?

yched’s picture

Version: 8.x-dev » 9.x-dev

So yes, as far as core is concerned, this is D9 stuff...

Dave Reid’s picture

@semei: When it's done. There is no timeline.

saltednut’s picture

Version: 9.x-dev » 8.x-dev
Issue summary: View changes

This 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.

Dave Reid’s picture

Version: 8.0.x-dev » 8.1.x-dev

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joseph.olstad’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2831274: Bring Media entity module to core as Media module

In 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