Skip to content

Add support for multiple content types to component relational fields #12552

@alee8648

Description

@alee8648

name: Add support for multiple content types to component relational fields
about: Allow content editors to select from multiple different content types at a time in a relational field

Feature request

Please describe your feature request

  • I have created my request on the Product Board before I submitted this issue
  • I have looked at all the other requests on the Product Board before I submitted this issue

Summary

Add an option to component relational fields that allows content editors to choose from multiple different content types at a time, e.g. Posts, Pages, Projects. Currently, the field can only allow for one or more from the same content type.

Why is it needed?

Our use case is a spotlight component that links to content from all over the site, not just a specific subtype of content. Other use cases might limit the field to just 2 or 3 content types that can be linked to from a slider or grid.

Suggested solution(s)

When adding a relational field to the component in the content type builder there should be 2 additional options:

  • X has one Content Type A or Content Type B (or Content Type C ...)
  • X has many Content Type A or Content Type B (or Content Type C ...)

image

In the content builder, this should be reflected in the dropdown for the field, which will now include a variety of different content types. It should include a marker to indicate what content type each item belongs to.

Related issue(s)/PR(s)

--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions