In Drupal 7, if you wanted to reference a view display from a node field, you had to use a module such as Viewfield. In Drupal 8, this can be done with Drupal core alone by using the built in entity reference to reference a block instance created from the view.
Step 1: Create a hidden region in your theme.
- Open your THEMENAME.info.yml file
- Find the section for "regions:"
- Add a new line: hidden: 'Hidden region for referenced blocks'
- Save and clear the cache.
Step 2: Create a view with a block display.
- Go to admin/structure/views/add
- Create your view with a block display.
- Do any additional tweaking you'd like and save the view.
Step 3: Place an instance of the block in the hidden region.
- Go to admin/structure/block
- Find the hidden region you just added in step 1.
- Click "Place block".
- Find your Views block.
- Click "Place block".
- Configure as desired and save.
Step 4: Create a reference field.
- Go to the field admin of your content type at admin/structure/types/manage/TYPE/fields.
- Click "Add field".
- In the "Add a new field" dropdown, choose "Other" under "Reference"
- Label the field and save.
- Under "Type of item to reference" choose "Block" under "Configuration" and save.
- Configure as desired. Leave "Reference method" set to "Default".
- Optionally set a block as the default:
- If you are only going to ever reference one view from this field and you want it automatically added, you can set it as the default value.
- If you would like to be able to select from multiple blocks, leave the default value blank and the user can choose when entering content. The default format of the field is autocomplete but this can be changed to a dropdown in admin/structure/types/manage/TYPE/form-display to make the choices more obvious.
- Save the field.
Step 5: Add the block to your content.
- Add a new item of the content type from step 4 at /node/add/TYPE.
- You should see your new field. If you set the default in Step 4, the view will automatically be filled in.
(Optional) Step 6: Alter code to limit the field.
If you are allowing the user to choose the view when entering content, you'll notice that the list is cluttered because it is showing _all_ the blocks on the site.
To make things cleaner, you can limit the list to just blocks placed in the hidden region with this:
1) If you don't already have one, create a custom module for site wide alterations.
2) Add the following directory structure under the root directory of the module: src/Plugin/EntityReferenceSelection.
3) In EntityReferenceSelection, add a file named BlockSelection.php. (The filename can be changed; just be sure it matches the class name.)
4) In this file, add the following code. Be sure to replace "MODULE_NAME_HERE", "YOUR_SITE_THEME". Also change "hidden" if you chose a different name for the region.
5. Save the file and clear the cache.
6. Edit the field you added in step 4 above.
7. Change the reference method to "Blocks: Filter by blocks in hidden region" and save.
8. Add a new item of the content type from step 4 at /node/add/TYPE.
9. The field will now be restricted to only showing blocks in the "hidden" region.
As you can see, with just Drupal core you can give your content editors the flexibility to choose from different sets of data (views) while creating a node. For even more flexibility, add the Paragraphs module and add your block reference field to a paragraph type. If you then assign the field on the content type to reference paragraphs, you can set it up so your editor can choose either a premade list (one of the views) or curate the list themselves by choosing a paragraph that allows them to pick individual items of content. With a single content type, your editors can create a variety of different pages depending on their needs.