Add support for field labels

Created on 18 November 2023, 7 months ago
Updated 9 January 2024, 6 months ago

Problem/Motivation

When rendering a view mode through a component and using mappings, we are ignoring the field label settings. We are only mapping the field value.

This will, likely, be the desired outcome the vast majority of the time. However, we should think about what to do with the field labels.

We have several options:

  1. Keep ignoring them.
  2. Include the label into the value that we map if it is configured to render. IOW map the whole formatter output, not just the value.
  3. Offer the field label as a mapping option separated from the field value.
  4. More?
✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

e0ipso Can Picafort

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

Comments & Activities

  • Issue created by @e0ipso
  • πŸ‡¬πŸ‡§United Kingdom lukus

    I think it's useful to include labels.

    Doings so:

    • allows editors to control label text via the UI.
    • honours Drupal's fundamental conceptual split between labels / fields

    .. and therefore think option 2 is the way to go.

Production build 0.69.0 2024