Inconsistent UI when adding via Media Library

Created on 13 December 2023, about 1 year ago
Updated 14 December 2023, about 1 year ago

When creating an iframe there is an inconsistency in the url depending on how you add the iframe:

if you add via the /media/add/iframe you get the full set of fields e.g.
- name
- fieldset
- iframe url
- iframe title
- iframe height
- iframe width

these are all required fields.

however when adding via media_library modal the only option is iframe url.

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom 2dareis2do

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

Comments & Activities

  • Issue created by @2dareis2do
  • 🇬🇧United Kingdom 2dareis2do

    Ok I realise now that there are 3 different field widget types that come with the iframe module.

    That said if I select the widget type as url only I still get an additional title field when editing the node.

  • Status changed to Closed: works as designed about 1 year ago
  • 🇦🇺Australia dpi Perth, Australia

    The media library form is intentionally a "quick add" feature. It asks for the bare minimum, a URL. The page after the quick add form is submitted maybe customised with the Media Library form view mode, which you can change to use the URL with width and height widget if you so desire.

  • 🇬🇧United Kingdom 2dareis2do

    Thanks @dpi for getting back to me.

    Let me try putting this another way. When editing an inline_frame bundle, the title field is a mandatory one. My feeling is:

    - Title field should either be set automagically when adding an iframe, or
    - User should have the option to set this at the same time as adding the iframe via the UI

    Alternatively, iframe title should not be mandatory, (which it appears to be in the dependent iframe module).

    A work around might be to automagically set the title using a token or otherwise.

Production build 0.71.5 2024