Add functionality for entity browser widgets

Created on 3 October 2023, 9 months ago
Updated 1 May 2024, about 2 months ago

Problem/Motivation

Right now we have this working for media library. We should also add functionality for entity browser widgets.

Note to discuss: should we just make this configurable possibly? What if users have custom entity browser displays

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dwisnousky

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

Comments & Activities

  • Issue created by @dwisnousky
  • @dwisnousky opened merge request.
  • πŸ‡ͺπŸ‡ΈSpain pcambra Spain, πŸ‡ͺπŸ‡Ί

    I'm quite interested on this module, is it still in development? How can I help? :)

  • πŸ‡ΊπŸ‡ΈUnited States vetchneons

    Hello @pcambra!

    This module is absolutely still in development and we would be happy to have your help with it!

    Right now, the module only works with media library and we were hoping to make it more flexible so that it will work with other module’s media forms. Another nice to have feature would be to have the image size validate when reusing media (e.g. prevent an image that has already been uploaded from being used on a field that does not pass the size restrictions set for it).

    Do you have anything on your wish list for this module?

    Thank you again for the help! :)

  • πŸ‡ͺπŸ‡ΈSpain pcambra Spain, πŸ‡ͺπŸ‡Ί

    @vetchneons my use case is to be able to reuse the same media entity type and image field for heterogeneous images, i.e. a regular content image but also a decorative background one. The requirements for these two are very different in terms on dimensions so it would be awesome to be able to have different form modes and configure the widget in different ways depending on the context which is something that entity browser allows to do with the form modes. So entity browser is definitely something that I would need to integrate with (as I'm not really using media library for any of this tbh).
    I see that there's an MR but I see no code, so if there's someone already working on this, I'll be happy to test & provide feedback, and if nobody has started, I could give it a stab, let me know!

  • πŸ‡ΊπŸ‡ΈUnited States vetchneons

    Makes sense!

    In its current version, I think the simplest way to get this to work would be to focus on putting some logic into the .module file for the that works for the entity browser forms. Attached is a copy of a patch we used in our environment to get this to work with the media browser and media directories module. Full disclosure, this was a quick and dirty fix to get it working so that we could keep other plates spinning.

  • Assigned to pcambra
  • πŸ‡ͺπŸ‡ΈSpain pcambra Spain, πŸ‡ͺπŸ‡Ί
Production build 0.69.0 2024