Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views Reference Field

59,658 sites Security covered
View on drupal.org

This module allows editors to embed and customize Views directly within content on a Drupal site, offering flexibility in content display and management, especially when used with Paragraphs or Layout Builder. Editors can choose which Views to display, select specific displays within a View, and even control view settings like arguments, limits, and pagination, all without needing deep technical knowledge. This provides a powerful way to build dynamic content pages.

This field in conjunction with the Paragraphs module or Core's Layout Builder, makes for a very powerful content management system, allowing addition of just about any kind of content into an entity page.

Key features

  • Allow editors to decide where and when to display Views in their site
  • Allow editors to add as many different Views as they would like to a page when a site builder adds this field to a Paragraph or Layout Builder block for example
  • Allow editors to decide which Display within a View to show (without this module, Core's entity reference would allow the View selection only)
  • Allow editors to customise how each View is display with the use of the built in Settings plugins
  • Allow developers to build out their own range of controls to give the editor, even leading to a sort of listing builder so editors can control content lists without needing to understand Views or be an experience Drupal site builder
  • Automated test coverage to ensure you have a reliable tool for your sites

For a more complete comparison with other views-embedding modules please check the documentation.

How to use this module

  1. Add a Views Reference Field to any fieldable entity (like Node, Paragraph, Block, User, etc) via the 'Manage fields' tab of that entity
  2. Decide which Views to allow (or all) via the field settings
  3. Decide whether to give the editor control over these built-in settings
    1. View arguments (contextual filter)
    2. Showing the View title or not
    3. Setting the limit and/or offset
    4. Deciding how the pagination is displayed
    5. (Roll your own control, like filters to show, table columns to display, etc)
  4. Use 'Manage form display' to decide whether to use an autocomplete or a select list for the editor to choose the View
  5. Use 'Manage display' to decide whether to 'Lazy load' the View or render immediately

Views Ajax History and Drupal Core Ajax integration

This module uses a viewsreference query string variable to persist its settings. When used with Views Ajax History or Drupal Core's Ajax (since version 11.3), that query string appears in the URL. Use Views Ajax History version 8.x-1.9 or include a patch of the merged commit to exclude the viewsreference[compressed] from the URL (regardless of your Drupal Core version).

Add-on modules

  1. Views Reference Extras extends this module to handle complex configurations which can result in 414 errors but reloading the views reference configuration from the entity instead of compressing the configuration as is.
  2. Views Reference Field Filter extends this module by adding a filter plugin that grants control over exposed views filters.

1.x Branch

The 1.x branch does not have the Settings plugins and supports only the arguments and title field control (in addition to selecting the View and Display). It therefore also does not allow you to roll your own Settings as described above.

There is an upgrade path from 1.x to 2.x, but please backup your database before doing the upgrade to prevent possible data loss. Please also report any issues you may encounter during the upgrade.

Future development is focused on the 2.x branch.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Activity

Tracked releases
4
Tracked since
Apr 2026
Latest release
1 week ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
8.x-2.0-beta14 Pre-release 10–11 Aug 20, 2026
8.x-2.0-beta13 Pre-release 10–11 Jul 11, 2026
8.x-2.0-beta12 Pre-release 10–11 Apr 21, 2026
8.x-2.0-beta11 Pre-release 10–11 Apr 17, 2026