plone / plone.app.contenttypes

Dexterity-based content types for Plone
https://pypi.org/project/plone.app.contenttypes
14 stars 48 forks source link

Add alt-tag field to image content type #700

Open jackahl opened 2 months ago

jackahl commented 2 months ago

Currently in many cases in Volto there is no alt text displayed for images(like https://github.com/plone/volto/issues/6302), cause there is no real way to add a proper alt text. We could use the description field as suggested in #605, but this should probably be its own field, as they serve different purposes in some cases.

jackahl commented 2 months ago

So I had a chat with @MrTango and he agrees that there would be indeed use for this in Classic as well. We should just make it very clear in the field description that this field is only for use in automated cases like listings/collections and still force people to add an alt tag manually when using the image explicitly. I would like to hear some opinions on this @sneridagh @tisto @davisagli @JeffersonBledsoe

jackahl commented 2 months ago

I also noticed part of this was also addressed 5 years ago in #518 :D

yurj commented 2 months ago

Actually, in Classic-UI, Plone fill the title attribute using the alt value. I think this is wrong, title should not be filled in images which uses the alt attribute. For other content or links, it is ok to use title.

thet commented 1 month ago

Related: https://github.com/plone/plone.namedfile/issues/162