Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Admin Audit Trail 1.0.11 Minor update available for module admin_audit_trail (1.0.11). Release: Image Scale and Fill Background Effect 1.0.0 Initial release available for module image_scale_fill (1.0.0)! Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: Changelogify 1.3.0 Minor update available for module changelogify (1.3.0). Release: Page Swap 1.0.3 Minor update available for module page_swap (1.0.3). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Entity Purge 1.0.0-beta5 Module entity_purge updated after 14 months of inactivity (1.0.0-beta5).

Field Tokens

894 sites Security covered
View on drupal.org

This module provides extended token functionality for Drupal fields, allowing you to insert formatted field values or specific field properties directly into text. It supports advanced options for selecting which field items to include and can integrate with other modules for more flexible token usage.

The Field Tokens module adds two additional types of field tokens: Formatted fields and field properties.

Formatted field tokens

Formatted Field tokens are tokens allowing one or many field values to be rendered via the default or specified field formatter.

The format is:

[PREFIX:DELTA(S):FORMATTER:FORMATTER_SETTING_KEY-FORMATTER_SETTING_VALUE:...]

(e.g. [node:field_image-formatted:0,1:image:image_style-thumbnail]).

Formatter settings that are themselves arrays (e.g. the image formatter's image_loading) can be set using dot notation in the setting key:

[PREFIX:DELTA(S):FORMATTER:PARENT.CHILD-VALUE:...]

Field property tokens

Field property tokens are tokens allowing access to field properties on one or many fields.

Properties are dependent on the field type.

The format is:

[PREFIX:DELTA(S):PROPERTY]

(e.g. [node:field_image-property:0:entity:url]).

When a field property stores an array, additional colon-separated segments traverse into the value using each segment as a key:

[PREFIX:DELTA(S):PROPERTY:KEY:KEY:...]

Entity delta token

A delta token is available on every entity token type (e.g. [file:delta], [node:delta]). It returns the zero-based position of the entity within its parent multi-value field. The delta is provided at runtime by the calling code.

Delta specification

The DELTA(S) position supports multiple formats for selecting which field item values to render:

  • Single: 0
  • Comma-separated: 0,2,4
  • Range: 0-2
  • Mixed: 0-2,4,6-8
  • Wildcard: *
  • Omitted: all field items

Custom Formatters integration

When used with the Custom Formatters module, tokens like [formatted_field-image:image:...] and [field_property:alt] can be used directly in HTML + Token formatters without entity-level chaining.

Required modules

Recommended modules

Activity

Tracked releases
3
Tracked since
May 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.0 Stable Jul 8, 2026
2.0.0-rc4 Pre-release Jun 18, 2026
2.0.x-dev Dev May 26, 2026