- Issue created by @ultimike
- ๐บ๐ธUnited States zengenuity
This was surprising to me, too. We have a project where we are only using this module for bulk updating old images without alt text initially, so we don't want content editors using the button. I found we can hide the button by adding this to settings.php:
<?php $config['ai_image_alt_text.settings']['hide_button'] = TRUE; ?>
Note that this only hides the button with
display:none
. (This option is on the config form for the module, but is only visible if the "Autogenerate on upload" button is checked.)This solution is good enough for our current project, since we're going to backfill a bunch of missing alt text, and then we can disable the module until we decide about using this going forward. But, ideally, there would be some more flexibility here.
- ๐ณ๐ฑNetherlands jurriaanroelofs
@zengenuity maybe in your case you can simply disable permission to use AI Image Alt text for all roles except administrators? This should let you test the module.
@ultimike Thank you very much for your feedback, I agree this would be an essential feature for large scale Drupal implementations. If there are dozens of content types and possibly over 100 image fields there are likely use cases where this button is not needed! We will put some effort into fleshing out an update for this.
- ๐ต๐นPortugal Sergio Morais
sergio morais โ made their first commit to this issueโs fork.
- Merge request !14Issue #3512063: Automatically added to all image fields โ (Open) created by Unnamed author