Skip to content

Fieldtypes: setting/customizing a label could benefit from some harmonization #14741

@ebeauchamps

Description

@ebeauchamps

Bug description

Similar or identical actions are not written the same way in various fieldtype settings. Not quite a bug, perhaps more a FR, feel free to change anything.

'array.config.keys' => 'Set the array keys (variables) and optional labels.'
'checkboxes.config.options' => 'Set the array keys and their optional labels.',
'radio.config.options' => 'Set the array keys and their optional labels.',

'grid.config.add_row' => 'Customize the label of the "Add Row" button.',
'list.config.add_row' => 'Customize the label of the "Add Item" button.',
'replicator.config.button_label' => 'Add a label to the add set button.',
'revealer.config.input_label' => 'Set a label to be shown in the button or beside the toggle.',
=> hasn't the replicator fieldtype a default "Add set" labelled button, therefore shouldn't it follow the grid and the list fieldtype?
=> shouldn't the revealer fieldtype follow along (though as now It doesn't have a default label?)

How to reproduce

Add various fieldtypes to your Blueprint and experience similar but also different ways of setting/customizing their labels.

Logs

Environment

Latest statamic Pro version (6.20)

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions