Set formatter settings at media entity level ?

Created on 9 February 2023, over 1 year ago
Updated 26 August 2023, 10 months ago

Thanks for this great module !

Is there a way to set formatter settings at the entity level instead of globally ?

For instance if I create a media type for Loom videos then I can set a width and a height by configuring the formatter at /admin/structure/media/manage/<my-loom-media-type>/display:

However this width & height is then applied to all Loom media entities. I'd like to expose the width & height and set different values for each video.

Is there a way to do that ? If not, how would you recommend implementing it ?

Thanks !

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada fengtan Montreal, Canada

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

Comments & Activities

  • Issue created by @fengtan
  • πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

    This isn't really supported by the module. The only idea that comes to mind to achieve this would be to implement your own formatter plugin, that would pass to the template height/width that would come from the media entity field values (which you would create in your project), instead of from the formatter config.

  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

    As @marcoscano mentioned, the ability to set the formatter settings at media entity level isn't really supported by the module so closing this issue. The suggested solution is to implement your own formatter plugin, that would pass to the template height/width that would come from the media entity field values.

Production build 0.69.0 2024