Contextual link does not link to right form display

Created on 12 July 2023, over 1 year ago
Updated 17 August 2023, over 1 year ago

Problem/Motivation

When configuring a form display in the media entity the contextual link does not link to that specific form display but to the default one.

🐛 Bug report
Status

Closed: works as designed

Version

1.2

Component

Code

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

Comments & Activities

  • Issue created by @VincentVandenBossche
  • Status changed to Postponed: needs info over 1 year ago
  • 🇫🇷France DrDam

    Can you add more detail about your configuration and the use case ?
    I don't understand the use case ...

  • 🇩🇪Germany drubb Sindelfingen

    I guess I have the same issue, I'll try to make it a bit clearer:

    When editing an entity containing media references e.g. for image media, there's a pencil symbol to edit the media and choose e.g. a focal point. The media edit form will be opened in a modal. However, this modal will contain the default edit form for the media element, not a contextual form as expected. The modal title will be e.g. 'Edit image xyz', not 'Override media item in context of...'. This means, the focal point settings will be global for all references to this media element, not contextual (bound to the parent entity) as expected.

    There's a missing piece somewhere. The form display settings for the reference field in the parent entity allow to choose between 'Media library' and 'Media library extra', the latter is chosen. Are we missing something? Does e.g. the reference field need to use a special field type?

  • 🇩🇪Germany drubb Sindelfingen

    Guess I answered the question myself:

    There's indeed a separate field type for media references, 'Media with contextual modifications'. Does this mean the module can't be used on a site with existing media references? Or is there some way to convert them?

  • 🇫🇷France DrDam

    It seems a drush command exist : drush media_library_media_modify:migrate

    see : https://www.drupal.org/project/media_library_media_modify/issues/3309696 💬 Any way to use on existing fields? Active

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024