This project is not covered by Drupal’s security advisory policy.

Views Attachment Field module provides a way to embed a view into a field in Field UI.

This is not a reference field, it just grabs the output of a view and puts it into a "fake" field. This field is not an extra field, so you can extend this module by providing formatters.

Basic usage instructions

  1. Create / prepare the view you want to embed.
  2. On the entity Field UI, add a "Views attachment" field.
  3. (optional) Disable the field in the form display (this is never used).
  4. In the view display, configure the field to use the view ID and display ID.
  5. (optional) Set the argument, which may contain token.
  6. It's done!

Requirements

  • Drupal 8+, no planned port on Drupal 7.
  • Token: needed for arguments sent to the view.

Similar modules

EVA: Entity Views Attachment

The basic idea behind Views Attachment Field and EVA: Entity Views Attachment is very similar: use Views as the content source to insert into the fields. The difference lies in the method of injecting this source into the content. EVA: Entity Views Attachment sort of pushes the values into an extra field, whereas Views Attachment Field pulls the values using a field formatter.

There is no relation between those two modules.

Link: https://www.drupal.org/project/eva

Viewfield

The logic is again very similar. The difference lies in the way the view is referenced to. In Viewfield, the field is an Entity Reference field onto which you may set default view, display, allowed views for the entity reference field if the field is made available in the edit form of the entity.

In Views Attachment Field, you set this reference to the view on the formatter end. There is no possibility to customize the value per entity instance, and this is the intended effect. The Views attachment field is not an entity reference field, it never stores any values.

Link: https://www.drupal.org/project/viewfield

Other combinations of field and views may be found here:
Comparison of Views embedded field modules

Project information

Releases