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).

Entity reference back-fill formatter

14 sites Security covered Drupal 9–11
View on drupal.org

This module provides a field formatter for entity reference fields that automatically populates with related content if the field is not fully set. It prioritizes content that shares the most matching terms with the current item, offering configuration options for display and matching logic.

About this module

Provides a field formatter for entity reference fields that allows back-filling values when a field is not completely populated by finding content with matching terms.

Items with the most matching terms are shown first.

The formatter allows you to configure:

  • the view-mode used to render the related items;
  • the quantity of items to display (up to the field maximum); and
  • which vocabularies to give precedence to when selecting matching terms
  • match mode for vocabularies (any/all/all with fallback)

Features

  • Supports any entity-reference field where the target type is a content-entity

Use Cases

Add a 'related articles' field that allows curation but with a fallback if not populated
Demo

Evaluate this project online using simplytest.me.

Requirements

Installation

  1. composer require "drupal/backfill_formatter"
  2. Enable the module using drush or in 'Extend'. (/admin/modules)
  3. Find a content-type or entity you want to use the formatter on and visit its 'Manage display' page
  4. Select the 'Back-fill by terms' formatter and configure as required.

Known Issues/Limitations

Please use the issue queue to report issues.

Similar modules

  • Similar by terms - however this uses a blocks based approach and only works with nodes.

Author/Maintainer

larowlan

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
Sep 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.0.5 Stable 9–11 Sep 2, 2025