Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module adds data attributes to entity reference revisions, providing context like whether an entity is the first or last in a list, its position (odd/even), and its relationship to adjacent entities. These attributes are useful for theming and determining an entity's placement within a page context.

This field formatter adds contextual data attributes to entity reference revisions, useful specifically for determining how an element is positioned within a page and when theming a set of entities in the context of a list.

It offers the following:

data-entity-context-first - The first entity in the field

data-entity-context-last - The last entity in the field

data-entity-context-prev="{entity-bundle}" - The bundle of the previous entity

data-entity-context-next="{entity-bundle}" - The bundle of the next entity

data-entity-context-group="{entity-bundle-group-number}" - An increment of groups (where a group is a set of entities with the same bundle

data-entity-context-odd - An odd delta entity in the field list

data-entity-context-even - An even delta entity in the field list

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.1.0 Stable 8–11 Jan 8, 2026