Epic #61834: Create future proof Content Element with strong default
File Links content element icon/thumb list usability
In the back end File Links content element shows only icons and thumbnails. Only way to see what files are listed is opening the content element for editing.
I think list of file names or titles would make more sense.
[FEATURE] Improve usability for BE database thumbnails/file icons
The backend produces thumbnails/file icons/truetype font previews which
come from a database row. The usability for these images can be improved
by showing the file name or title on hover using the title attribute.
Currently only the thumbnail/icon is produced and more information can
only be read by clicking the icon or opening the record, like in the
content element File Links.
This patch changes the alt attribute to the alternative text and adds the
title attribute for these images. When no title has been given for a file
record, the file name will be used instead.
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Revert "[FEATURE] Improve usability for BE database thumbnails/file icons"
This reverts commit bedddf2e0fb50b0ebe3751f8563ee8021c945303
Reason for reverting the mentioned commit:
Fatal error: Call to undefined method
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
#3 Updated by Patrick Broens over 6 years ago
This is a matter of personal preference. For some people the visual information like a thumbnail says more than a file name.
You can click on each thumbnail or icon to get more information about that particular file. It will open in a popup.
However, it might be an idea to have the file name in the "title" attribute of the thumbnail/icon. It is already in the "alt" attribute, but most browsers don't show this nowadays (which is good). When hovering the thumbnail, it will show the content of this "title" attribute, like "Filename: YourPicture.jpg". It makes no sense to have the file name in the "alt" attribute.
IMHO the best solution would be to have the FAL title in the title attribute and the FAL alternative text in the alt attribute. When the title in FAL is empty, it defaults to the file name anyway.
#10 Updated by Oliver Hader almost 6 years ago
- Status changed from Resolved to Needs Feedback
Reopened since the change has been reverted in master due to a fatal error:
File::getAlternative() was used, which does not exist...
Maybe somebody wants to give it a try with File::getProperty('alternative')?