Loading...
 
Skip to main content

img Plugin alt= field does not accept "name" or "desc" from File Gallery

Status
Pending
Subject
img Plugin alt= field does not accept "name" or "desc" from File Gallery
Category
  • Usability
Resolution status
Confirmed
Submitted by
Matt
Volunteered to solve
bienvenu ushindi
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

In HTML images alt= is used for screen readers.
Tiki img plugin should accept "title" and "desc" for alt= in the same way it does for Caption and title=. It may look like this was the intention in the plugin code, but the Alt field in the form only uses input as string value (literal).
Plugin code should be fixed to allow using image Title or Description from File Gallery, not only manual input.

To reproduce: upload an image to the Gallery, define Title and Description. Place it on a wiki page and in the plugin dialog type desc or title for both Caption and Alternate Text.
Result: in HTML code, title= attribute and the div below will show correct DB values from Gallery, but alt= only translates to alt=desc

Solution

https://gitlab.com/tikiwiki/tiki/-/merge_requests/7327/

Workaround
Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8701
Created
Friday 04 October, 2024 17:57:19 UTC
by Matt
LastModif
Sunday 30 March, 2025 14:07:37 UTC


Show PHP error messages