Add option to automatically create an entity reference view when a new content type is created

Created on 15 December 2015, over 9 years ago
Updated 2 September 2025, 12 days ago

Problem

When a site builder creates a content type it is highly likely that they will want an entity reference view for that type.

For example if I create a type "Address" I almost certainly want to reference that type in "location" or "Event". Similarly if I create a type "Song" I almost certainly want to reference that with a multi-value reference field in "Album". When you think about it the mere fact that I am creating a "type" ie. an entity of which there will be more than one, implies that at some point I will want to show a list of those things.

The only cases I can think of where an entity would not require a view are ones where core has already provided a view (content, files, recent content, recent comments etc.).

Proposed solution

When a site builder creates a content type they should see a "View settings" tab in the vertical tabs with the option "Create an entity reference view" checked by default, and the descriptive text: "With an entity reference view you can attach content of one type to content of another type. For example a type "song" with an entity reference view could be attached to a type "Album" by adding an entity reference field."

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

entity system

Created by

πŸ‡ΊπŸ‡ΈUnited States tkoleary

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the β€œVDC” tag instead.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Came upon this based on the update to postponed and I'm inclined to close/won't fix this. In my experience, I almost never create an entity reference view for entities because the defaults work fine in most cases. This is also a strange UX pattern to introduce views settings on the content type entity.

Production build 0.71.5 2024