import { default } from "https://deno.land/x/netlify_cms_config@v0.3.2/fields/relation.ts";
Constructors
Methods
Name of the referenced collection
Accepts any widget data type; defaults to an empty string
List of one or more names of fields in the referenced collection that will render in the autocomplete menu of the control. Defaults to value_field. Syntax to reference nested fields is similar to that of value_field.
Allows referencing a specific file when the referenced collection is a files collection (string)
Maximum number of items. Ignored if multiple is false
Minimum number of items. Ignored if multiple is false
Accepts a boolean, defaults to false
Accepts integer to override number of options presented to user. Defaults to 20.
List of one or more names of fields in the referenced collection to search for the typed value. Syntax to reference nested fields is similar to that of value_field.
Relate automatically with a folder/file collection
Name of the field from the referenced collection whose value will be stored for the relation. For nested fields, separate each subfield with a . (e.g. name.first). For list fields use a wildcard * to target all list items (e.g. categories.*).