Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: Horizon Aid theme 1.0.2 Minor update available for theme vartheme_bs5_horizonaid (1.0.2). Release: LocalGov Alert Banner 1.10.1 Minor update available for module localgov_alert_banner (1.10.1). Release: Kordiam 1.0.14 Minor update available for module kordiam (1.0.14). Release: WissKI 8.x-4.4 Minor update available for module wisski (8.x-4.4). Release: AI Empathy Evaluation 1.3.0 Minor update available for module ai_empathy (1.3.0). Release: Zefix 1.0.5 Minor update available for module zefix (1.0.5). Release: Ui Suite Dsfr 1.15.2 Minor update available for theme ui_suite_dsfr (1.15.2). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Module Revived: Behat javascript 1.2.1 Module behat_javascript updated after 23 months of inactivity (1.2.1).

Automatic Entity Label

47,052 sites Security covered Drupal 10–11
View on drupal.org

This module automatically generates labels for entities using patterns or PHP code, and can hide the default label field to prevent empty values. It supports various entity types and can be enhanced with tokens for more complex label generation.

"Automatic Entity Label" is a small and efficient module that allows hiding of entity label fields. To prevent empty labels it can be configured to generate the label automatically by a given pattern.

This can be used on any entity type, including e.g. for node titles, comment subjects, taxonomy term names and profile2 labels.

Patterns for automatic labels can be constructed with tokens. Drupal core provides a basic set of tokens. For a token selection widget install the token module. Some entity types (e.g. profile2) provide tokens via the entity_token module (part of entity).

Advanced users can use PHP code for automatically generating labels.

Watch the Daily Dose of Drupal screencast by Shane Thomas for a short introduction and demonstration of the module and some of its features.

Notes

  • This module grew out of the Automatic node titles module and aims to be a full replacement.
  • During installation all auto_nodetitle variables (ant_*) are automatically migrated to this module and deleted to prevent conflicts between both modules.
  • Automatic entity labels also works with title replacements provided by the Title module.
  • If you find the module description above confusing, please help improve it: #1713322: Improve project description / terminology

Credits

Huge thanks to Wolfgang Ziegler for all his work on Automatic Nodetitles and to Vasi Chindris for laying the groundwork for this module in #1124484: Automatic Entity Titles: Support for Taxonomy & Other Entities.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-3.4 Stable 10–11 Jan 5, 2025