Extract title when embedding directly in the media library

Created on 27 September 2023, over 1 year ago

Problem/Motivation

Extract title when embedding directly in the media library, so the title is not media:<uuid>

Steps to reproduce

  1. Enable media library.
  2. Add media reference to article.
  3. Edit article form mode so it uses media library widget.
  4. Go to article form, press Add media button.
  5. In the media library, paste an embed and click Save.

Expected result

The name is prefilled from the embed title.

Current result

The name is prefilled with autogenerated title with the uuid, but you can override it.

Proposed resolution

Extract title from the embed. See \Drupal\media_tyler_data_insights\Plugin\media\Source\TylerDataInsightsSource::getMetadataAttributes

Remaining tasks

Implement the mapping of attributes.

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024