Add plural label variation

Created on 24 January 2024, about 1 year ago
Updated 20 February 2024, about 1 year ago

Problem/Motivation

Hello,

In certain configurations and for some site builders there may be a need to have a label for a field that differs when the field has more than one item. For example 'Topics' and 'Topic'. As field_label allows a site builder to change the label of a field at its discretion, it would be interesting to leverage this functionality and accommodate the case described above by including it in this module.

Proposed resolution

Add new settings and check field cardinality and field items count and replace custom label.

User interface changes

Add a new 'Plural label' field third party setting and 'Plural label enabled' toggler on Field Label Configuration form.

Data model changes

field.formatter.third_party.field_label and field_label.settings schema should be updated. Since new setting is set 'false' by default, current field configuration shouldn't be affected.

Cheers!

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal joao.ramos.costa

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