Create an option to use file name as title text

Created on 2 July 2021, over 3 years ago
Updated 30 September 2024, 3 months ago

Problem/Motivation

According to accessibility guidelines it's not a good practice to put same text into alt-text and figcaption.
Currently this module inserts alt-text as caption text.

Proposed resolution

Create an option "Use file name as image title" and if it's set to true image title in will be just file name without extension.
so if file name is "Cuckoo clock.jpg" title will be "Cuckoo clock"

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇦🇺Australia jannakha Brisbane!

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia raumus

    A minor update to #7: stripping off tailing counter at the end of the filename. E.g. `Cuckoo clock_01.jpg`, `Cuckoo clock_02.jpg` will have title `Cuckoo clock`.

Production build 0.71.5 2024