New IEF issue: #2842451: File entity support.

Hi guys,

I was wondering on how to add Inline Entity Form module support to file entities.

I have added the necessary inline form controller, but the widget is empty on the node/add forms...

Anybody who has experience in this field care to help?

Thanks in advance!

Comments

dshields’s picture

Issue summary: View changes

This would certainly be helpful. Bump!

mglaman’s picture

Working on a patch to IEF... in order to show widget, add

  elseif ($field['type'] == 'image' || $field['type'] == 'file') {
    $settings['entity_type'] = 'file';
    $settings['column'] = 'fid';
  }

to inline_entity_form_settings

smd_ksu’s picture

Anyone have more detailed instructions? Not sure how or where to put the controller.

fox_01’s picture

frob’s picture

According to the IEF api all that needs to happen is a plugin be included in the file_entity module. Is there a reason that this wouldn't work?

jenlampton’s picture

For reference on how to make file-entity forms work inline, see the file_entity_inline module

MKorostoff’s picture

Title: Inline entity form support » MKorostoff
MKorostoff’s picture

Title: MKorostoff » Inline entity form support
bneil’s picture

Version: 7.x-2.0-unstable7 » 7.x-2.x-dev
Category: Support request » Feature request
nicholas.alipaz’s picture

This affects D8 too. I was able to get partial support by installing IEF and file_entity module. The only field missing is the actual file field oddly enough, all the other fields, alt, title, and etc. were there. However, upon saving it would claim it couldn't reference the entity for some reason or another. I didn't look into it further but it seems like it could work with fairly minor adjustments in D8.

dmsmidt’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev

As per #10, we need this in D8.
We can backport later.

Drupal\file_entity\Form\FileEditForm is currently used for editing files. We can reuse some of the logic.

dmsmidt’s picture

Issue summary: View changes
Priority: Normal » Major
Status: Active » Closed (won't fix)

Moving this to the IEF queue, since we also want support even if File Entity is not installed.
See new issue #2842451: File entity support.