Module does not show the option for decorative alt

Created on 16 March 2023, over 1 year ago
Updated 13 June 2024, 5 months ago

I have installed the module and cleared the cache, but I never have an option for decorative alt, even when I tried the development snapshot.

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇺🇸United States lquessenberry

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

Comments & Activities

  • Issue created by @lquessenberry
  • 🇺🇸United States luke.leber Pennsylvania

    Hello,

    Can you make sure that the image alt is not required on your image field settings? It certainly appears that this module does nothing if the image alt field is required (because it does do nothing in that case) :-).

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇬🇧United Kingdom aaron.ferris

    Couple of things that I noticed that could cause that:

    1. As @luke.leber says, make sure the alt option is not required
    2. If you're using a custom image widget that extends the core Image widget, check nothing funky is going on in there. I'm using an extended image widget with some custom code, and this module didn't like it
  • 🇪🇸Spain taote

    Same here with Drupal 10 installation. Alt text is optional and no custom widgets.

  • Seeing the same here with Drupal 10.2.2. Alt text is optional, using core Image widget, but still no option to enable decorative in the form display settings.

  • 🇬🇧United Kingdom aaron.ferris

    Very odd, fresh install of Drupal 10.2.3 here, latest version of this module, alt text optional and the option in the form display settings works as I'd expect.

    The only other modules enabled, apart from the usual Core bits, are media, media library and decorative_image_widget

  • 🇬🇧United Kingdom aaron.ferris

    I don't suppose either of you have the svg_image module enabled? I seem to be able to replicate this when that module is enabled.

  • 🇬🇧United Kingdom aaron.ferris

    I wonder if it would be worth creating an image widget for this module rather than altering the standard ImageWidget to avoid this sort of thing.

  • 🇫🇷France mably

    Related issue for Svg Image module : SvgImageWidget should inherit from ImageWidget instead of FileWidget 🐛 Why is SvgImageWidget inheriting from FileWidget instead for ImageWidget? Active

  • 🇺🇸United States bkosborne New Jersey, USA

    I wonder if it would be worth creating an image widget for this module rather than altering the standard ImageWidget to avoid this sort of thing.

    That would be ideal, but it would also mean that we'd lose integration with other contrib modules like Image Widget Crop.

  • 🇬🇧United Kingdom aaron.ferris

    Yes indeed, I started to go down the route of creating a patch for this but not sure the best way forward so held off.

  • 🇺🇸United States wrd-oaitsd

    Just tried adding this module to an existing site, and it's not showing the option for me, either. The SVG image module is not enabled on this site.

  • 🇫🇷France arthurg

    Do you have a solution for this issue ? I've installed the module, and I don't use the SVG module but the decorative checkbox not appear in the image form...

Production build 0.71.5 2024