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

Supporting organizations: 
Maintenance

Project information

Releases