The Content Relationship field is used to link to another document in your Prismic repository.
  

Configuration

Assign the Content Relationship field a Field name, API ID, and Field placeholder that will display in the entry editor.

Then set any constraints you need. The constraints will automatically add filters for Custom Types and/or Tags when an author is selecting a document.

 

JSON Editor

The following is an example of a Content Relationship with both a Custom Type and a Tag constraint:

"related_article": {
  "type": "Link",
  "config": {
    "select": "document",
    "customtypes": [
      "article"
    ],
    "tags": [
      "Featured"
    ],
    "label": "Related Article",
    "placeholder": "Select a Related Article..."
  }
}

 

JSON Reference 

"type": (string, required) Link

"config": (object, optional) Options listed below

 

config

"label": (string) Sets the label that shows up for the field in the entry editor

"placeholder": (string) Sets a placeholder to display in the select dropdown

"select": (string) Must be equal to "document"

"customtypes": (array) Filters the document list by the specified custom types

"tags": (array) Filters the document list by the specified tags

Did this answer your question?