☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

_select_data

Table of contents

Description:

This key defines defines fixed data sets to populate Select and Multiselect inputs at a given level of the configuration cascade.

This key has no default.

If undefined at higher levels of the configuration cascade, _select_data will default to any values configured in the CloudCannon configuration file.

For more information, please read our documentation on Select and Multiselect inputs.

Appears in:
├── [*]
│   └── _select_data
├── create
│   └── _select_data
├── collections_config
│   └── *
│       ├── schemas
│       │   └── *
│       │       └── _select_data
│       └── _select_data
├── file_config
│   └── [*]
│       └── _select_data
└── Snippet
    └── _select_data
Type:
Object<_select_data.*>
Values:
Object Select DataObject<unknown>#
Examples:

In this example, we have configured the blog_tags Multiselect input for the blog Collection.

Copied to clipboard
collections_config:
  blog:
    _select_data:
      blog_topics:
        - Opinion
        - Feature
        - Resource
{
  "collections_config": {
    "blog": {
      "_select_data": {
        "blog_topics": [
          "Opinion",
          "Feature",
          "Resource"
        ]
      }
    }
  }
}
Open in a new tab