Can this be used with core media ?

Created on 16 April 2022, over 2 years ago
Updated 6 February 2024, 11 months ago

Problem/Motivation

On he homepage for D8 it says that there is a new image field type.

Can this be used with an existing media field from Drupal 8/9 core?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

1.5

Component

Media Integration

Created by

🇺🇸United States SocialNicheGuru

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom 2dareis2do

    I would also like the ability to use when using core 'media library' widget.

  • Status changed to Fixed 12 months ago
  • 🇫🇮Finland sokru

    I've several projects where focal_point is used with Drupal core's media module.
    It needs something like this configuration for core.entity_form_display.media.image.default.yml:

    langcode: en
    status: true
    dependencies:
      config:
        - field.field.media.image.field_media_image
        - image.style.scaled_m
        - media.type.image
      module:
        - focal_point
    id: media.image.default
    targetEntityType: media
    bundle: image
    mode: default
    content:
      field_media_image:
        type: image_focal_point
        weight: 1
        region: content
        settings:
          progress_indicator: throbber
          preview_image_style: scaled_m
          preview_link: true
          offsets: '50,50'
       .........
    
  • 🇬🇧United Kingdom 2dareis2do

    thanks @sokru

    Can you share a screen shot of how this looks in the media widget?

    Thanks again.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024