Skip to content
Snippets Groups Projects
Commit 8a2f1565 authored by Willi Wehmeier's avatar Willi Wehmeier Committed by Oliver Bartsch
Browse files

[TASK] Respect alt text in backend thumbnails

The thumbCode method in the BackendUtility sets
the filename as the alt text for images. That's
why the backend representation of content elements
like textmedia doesn't respect any set alternative
text, whether it's set in the file_reference or
the sys_file record itself.

This change uses the alternative text and only
sets the filename as a fallback if there's no
alternative text provided for the file.

Resolves: #103285
Releases: main, 12.4
Change-Id: I3c11bb7a56f001e37eafdd1f0a998cb51fb2b460
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83213


Reviewed-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Tested-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 08a859a5
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment