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.
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
Comment #1
dshields CreditAttribution: dshields commentedThis would certainly be helpful. Bump!
Comment #2
mglamanWorking on a patch to IEF... in order to show widget, add
to inline_entity_form_settings
Comment #3
smd_ksu CreditAttribution: smd_ksu commentedAnyone have more detailed instructions? Not sure how or where to put the controller.
Comment #4
fox_01 CreditAttribution: fox_01 commentedRelated issue #2327369: File entity support
Comment #5
frobAccording 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?
Comment #6
jenlamptonFor reference on how to make file-entity forms work inline, see the file_entity_inline module
Comment #7
MKorostoff CreditAttribution: MKorostoff commentedComment #8
MKorostoff CreditAttribution: MKorostoff commentedComment #9
bneil CreditAttribution: bneil at The University of Iowa commentedComment #10
nicholas.alipaz CreditAttribution: nicholas.alipaz at L.A. BioMed commentedThis 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.
Comment #11
dmsmidtAs 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.
Comment #12
dmsmidtMoving this to the IEF queue, since we also want support even if File Entity is not installed.
See new issue #2842451: File entity support.