This project is not covered by Drupal’s security advisory policy.

Provides a field widget and field formatter for image fields to look up a corresponding media item based on the image file.

This is meant for sites that were migrated from Drupal 7 media module in an incomplete state, and will allow you to leverage migrated media entities using the migrated image fields for new content until you are ready to change those image fields into media reference fields.

The media migration problem

There is no "perfect" media migration from Drupal 7 that migrates image or file fields into media reference fields.

A module like Media Migration may not have migrated image or file fields into media reference fields putting your site into an incomplete migrated state where image fields and media are not-related at all.

And now you can't add content because any new images will not have a corresponding media item created!

What now?

A stop-gap solution

This module provides a stop-gap solution so that you can add content without screwing up your site's content.

  1. An image field formatter "Media entity" so that you can access fields on the media entity in views and such.
  2. An image field widget "Media" so that you can add a media (image) entity and save the file related to that on your image field.

This should not be considered a permanent solution! You will eventually need to duplicate your image fields as media entity reference fields using one of the modules below in the "Follow-up solutions" section.

Module requirements

Follow-up solutions

Ideally you do not want to continue using this module forever. You can use one of the following modules to duplicate image fields into media entity reference fields so that you can redo views, layouts, theming, etc... when you are ready to do so on your site. Then you can hide (or delete) the old fields.

Similar projects and how they are different

  • Image Library Widget
    • Does not provide a formatter so any fields that are attached to the media entity are not available.
  • Media Library Form Element
    • Provides a media library to a custom form element. It could be useful to use this custom form element in the widget later.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution No further development
    No longer developed by its maintainers.
  • Project categories: Media
  • Ecosystem: Inline Entity Form, Drupal Media
  • Created by mradcliffe on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases