Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Don't use this. There is a better module.

Please don't use this module. There is a better one: https://www.drupal.org/project/viewsreference.

If you were about to install this sandbox module, don't! Use the above module instead.

For those who, like me, are already using this sandbox module in a production site, I hope to find time to work on a migration process to the viewsreference module. See #2871178: Provide automated migration to viewsreference project.

Original description

This module provides a field formatter for entity references that reference views.
With this field formatter, it is possible to display the referenced view instead of merely linking to it.

This module is for Drupal 8 only.

Instructions

  • Enable the er_view_formatter module.
  • For the entity reference field that references a View, go to the "Manage display" page for your content type or other entity type:
    • Find your entity reference field.
    • Change the display format to "Rendered View."
  • This field formatter will render the view's embed_1 display if it exists. If not, it will render the block_1 display if it exists. If neither embed_1 nor block_1 exist, it will render the default display.
  • This field formatter does not let you specify which display to render. That is being considered for a future version.
Supporting organizations: 

Project information