Skip to content
Snippets Groups Projects
README.md 1.44 KiB
Newer Older
Kent Shelley's avatar
Kent Shelley committed
=====================
Kent Shelley's avatar
Kent Shelley committed
INTRODUCTION
------------
The views reference field works the same way as any Entity Reference field except that the entity it targets is a View
You can target a view using the entity reference field but you cannot nominate a particular View display
The views reference field enables you to nominate a display ID and an argument
Kent Shelley's avatar
Kent Shelley committed

REQUIREMENTS
------------
You will need the `config_filter` module to be enabled.

INSTALLATION
------------
Install the module as usual
Or use:
Kent Shelley's avatar
Kent Shelley committed
/*****  Composer *****/
Although views reference does not need composer, if you install using composer then use the following:
Kent Shelley's avatar
Kent Shelley committed

From the drupal root directory of your install:

composer config repositories.drupal composer https://packages.drupal.org/8
Kent Shelley's avatar
Kent Shelley committed
composer require drupal/viewsreference

CONFIGURATION
-------------
In any entity in the manage fields tab:
when adding new fields a 'Views reference' field will now be available
Kent Shelley's avatar
Kent Shelley committed

After adding a 'Views reference' field it is possible to change the following additional settings:
- View display plugins to allow - for each field instance the available display plugins can be limited.
- Hide available settings - modules are ables to add settings to the view reference fields. For each field instance the available settings can be hidden.
Kent Shelley's avatar
Kent Shelley committed

MAINTAINERS
-----------
Current maintainers:

 * Kent Shelley (New Zeal) - https://www.drupal.org/u/new-zeal
 * Joe Kersey (joekers) - https://www.drupal.org/u/joekers