Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

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

Activity

Total releases
1
First release
Sep 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
2.0.5 Stable Sep 2, 2025