Image formatter can not export title

Created on 10 September 2024, 7 months ago

Problem/Motivation

The export image formatter can not export the title field of an image.

The formatter checks if the title field is enabled in field settings, before it offers the checkbox to render the title. But this check can not work by design: Those settings are the values of the default settings. Given that one field (.storage.yml) can be used by multipe fields (.field.yml), each with their own settings, and views fields work based on storage accross different bundles, it is not even possible to make the field settings check.

Steps to reproduce

Add an image field to a node. Enable the title field on the image. Disable the alt field.

Create a rest view with that image field. The title option will not be available. The alt option will be available.

Proposed resolution

Remove the field settings check. Always offer all options in the views plugin and let the site builder decide inside the views UI.

🐛 Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

🇦🇹Austria hudri Austria

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024