Skip to content
Strife Docs

Reference Fields

Related

Create a document relation

Settings

In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.

Note:

You can find a comprehensive list of all basic settings in the 'Overview' section.

OptionDescription
Multi select
Allow multiple values to be selected
Restrict collections
Restrict the collections that can be related

Define with JSON

When defining templates using JSON, this field is represented using:

  • Component Name: str-related
  • Type: related
  • Reference ID: str-related

The settings above map into the editor.attributes object inside the JSON definition.

JSON
{
  ...
  "editor": {
    "name": "str-related",
    "type": "related",
    "propertyName": "...",
    "attributes": {
      "multiSelect": true,
    },
    "options": {
      "allowedCollections": [...] //Collection names
    }    
  },
  ...
}

Live preview

Note:

This field does not have any default Strife Web Components. Custom live preview implementations are fully supported.

Note:

For more information on live preview and Strife Web Components, please refer to the Live preview documentation.