Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293129

Create an MVP for adding and re-using Media

$
0
0

Problem/Motivation

For Drupal 8.3, we want to ship with a library that allows displaying and selecting from a listing of previously-uploaded media.

Proposed resolution

Implement an MVP media library, based on the user stories and design from #2796001: [prototype] Create design for a Media Library.

Implementation happening so far at https://github.com/mortenson/media_library, will post patches later.

Issues with patches you'll need to apply to test this issue:

- #2834777: Refactor Drupal\system\Plugin\views\field\BulkForm to support a select form as well
- #2831274: Bring Media entity module to core as Media module

Remaining tasks

These are fairly high level, but in general I think we should:

  1. Discuss what should be covered by the MVP (this is being done in #2796001: [prototype] Create design for a Media Library).
  2. Develop a pattern for selecting entities in views (this doesn't have to be a form element/widget, just the logic that powers the MVP)
  3. Develop a pattern for adding (uploading) new media, with a focus on the "image" bundle
  4. Write CSS and JS required for the MVP to function
  5. Ensure that the library works in a standalone page at /admin/content/media
  6. Ensure that the library works in Field widgets
  7. Ensure that the library works in WYSIWYG

User interface changes

This is a UI addition, so existing user interfaces should not be affected by this change.

API changes

We may be implementing new APIs for implementing Views-based entity selection, but we haven't decided how abstract we're going to get (see task #2 above).

Data model changes

None, the data model changes are being added in #2831274: Bring Media entity module to core as Media module.


Viewing all articles
Browse latest Browse all 293129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>