A Bynder Image formatter with Image Style fallback

Created on 23 April 2024, 8 months ago
Updated 25 April 2024, 8 months ago

Problem/Motivation

In Drupal, we can have a Media reference field that allows multiple selections. In our case, we allow Image and Bynder Image. We are allowing that while Editors migrate to use Bynder only.
However, while the migration is not completed, we need to account that the field will render Images or Bynder images.

Steps to reproduce

  1. Create a content type
  2. Create a new field - Reference > Media
  3. Select "Bynder" and "Image" in the Media type
  4. In the Manage display, configure the field to use the Bynder (Image) formatter. Configure the formatter as you would normally.
  5. In the Manage form display, configure the field to use the Entity browser
  6. Create a node uploading an image from your computer
  7. Create a node selecting an image from Bynder

Result: The node created in step 6 does not display any image. The node created in step 7 has the image displayed.

Expected result: Both nodes should have the images displayed.

Proposed resolution

I propose we create a new formatter that the admin will be able to use when they have configured the Media reference field to have Bynder and Images types.
The new formatter will extend the BynderFormatter.

✨ Feature request
Status

Closed: won't fix

Version

4.2

Component

Code

Created by

πŸ‡§πŸ‡·Brazil carolpettirossi Campinas - SP

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024