"Form" by hans draiman from NounProject.com
A screenshot of what the new "Inline media form" option looks like when customizing the form display of a media field in the Seven admin theme.
A screenshot of most of the settings supported by the "Inline media form" widget in the Seven admin theme. This is what it looks like without the core patch from #2971209 for custom media library views applied.
A screenshot of even more settings supported by the "Inline media form" widget in the Seven admin theme. This is what it looks like with the core patch from #2971209 for custom media library views applied.
A screenshot of what content editing looks like when the widget is empty on an unlimited cardinality field in the Seven admin theme.
A screenshot of what content editing looks like when the widget contains content for an unlimited cardinality field using the default Media form display in the Seven admin theme.
A screenshot of what content editing looks like when the widget contains content for an unlimited cardinality field, with the rows expanded, using the default Media form display in the Seven admin theme.
A screenshot of what content editing looks like when the widget contains content for an unlimited cardinality field, with the rows expanded, using a custom (simplified) Media form display in the Seven admin theme.
A screenshot of using the grid view of the media library view to select media files for an inline media form widget, with the default media library view.
A screenshot of using the table view of the media library view to select media files for an inline media form widget, with the default media library view.
A screenshot of using the grid view of the media library view to select media files for an inline media form widget, with a custom media library view and multiple content types.
A screenshot of using the Bulk rename feature of the widget in the Seven admin theme.

Integrates the Media Library with an entity reference and editing widget, delivering a media editing experience similar to Inline Entity Form and Paragraphs.

Unlike Inline Entity Form, existing media can initially be selected using the Media Library in Core. The code for the widget is a fork of the older widget from the Paragraphs module, heavily modified to work with Media instead.

Features

  • Provides a streamlined workflow for content editors to use the Media Library to select media files and then immediately start editing what they selected.
  • Enables inline editing of media files through Media reference fields embedded in other entities (e.g., nodes, taxonomy terms, users, etc.), in a manner similar to Inline Entity Form or Paragraphs.
  • Enables the admin to control exactly what form fields are exposed when media files are expanded in the widget by specifying the "Form display".
  • Enables the admin to control exactly what information is displayed when media files are collapsed in the widget by specifying the "Preview display mode".
  • A patch to core in #2971209: Allow the MediaLibraryUiBuilder service to use an alternative view display unlocks further capabilities of this module to use a custom view when displaying the media library to users.
  • Works with both unlimited cardinality and limited cardinality Media fields.
  • Supports efficient editing of several dozen media files in the same widget by providing expand/collapse behavior (like Inline Entity Form and the older Paragraphs widget) so that the edit form for media not being edited does not take up space.
  • Bulk rename allows the titles of media files to be changed in bulk with an optional suffix number added (this will only have an effect in the form if you are displaying the title of each media file, which is not what the default Media display mode is configured to do).

Known Limitations

This has been developed and tested with Drupal 8.0 to 9.5 with the Seven admin theme. Additional work is required to get all features (e.g., bulk rename, expand/collapse all) to work with the newer Claro theme and to get this working on Drupal 10+.

Supporting organizations: 
Principal developers

Project information

Releases