Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maursilveira/field_label_override
Mirror of the drupal.org repository for Field Label Override module
https://github.com/maursilveira/field_label_override
drupal drupal-module drupal-project field label
Last synced: about 1 month ago
JSON representation
Mirror of the drupal.org repository for Field Label Override module
- Host: GitHub
- URL: https://github.com/maursilveira/field_label_override
- Owner: maursilveira
- Created: 2024-03-01T02:12:11.000Z (11 months ago)
- Default Branch: 1.x
- Last Pushed: 2024-04-17T01:43:24.000Z (10 months ago)
- Last Synced: 2024-11-14T15:20:07.060Z (3 months ago)
- Topics: drupal, drupal-module, drupal-project, field, label
- Language: CSS
- Homepage: https://www.drupal.org/project/field_label_override
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Field Label Override
## Table of contents
- Introduction
- Requirements
- Installation
- Configuration
- Maintainers## Introduction
**Field Label Override** allows administrators to set custom labels to fields per entity view mode. This module works with fields for any entity type, such as nodes, taxonomy terms, blocks, etc.
Example: The content type *Article* has the field **Body**. Using this module, it is possible to set the label of this field to be displayed as **Full Description** for the *Default (Full)* view mode, where the full content of the field is rendered, and **Short Description** for the *Teaser* view mode, where only a summary or a trimmed version of the content is presented.
## Requirements
This module requires Drupal core >= 10.0.
## Installation
Install as you would normally install a contributed Drupal module.
Visit https://www.drupal.org/node/1897420 for further information.## Configuration
This module includes two settings:
**Override label**: The label to be used for the field in that respective view mode.
**Preserve original label**: Checkbox to determine if the original field label will be preserved. If checked, the original label will not be changed, and a new variable `label_override` will be available in the field twig template, containin the custom label. If unchecked, the original `label` will be completely overridden by the custom label.
## Maintainers
Current maintainers:
- Mauricio Silveira ([maursilveira](https://www.drupal.org/u/maursilveira))