Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Entity reference back-fill formatter

Security covered Under active development 13 sites

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

Drupal 9–11

Ask your assistant about Entity reference back-fill formatter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.5 Stable 9–11 Sep 2, 2025
2.0.4 Stable 9–11 Jun 14, 2024
2.0.3 Stable 9–10 Jul 20, 2023