This key defines which editing interface CloudCannon will use when you select an option from the + Add button dropdown.
Values can be one of the following: visual, content, or data.
By default, CloudCannon will open the new file in an appropriate editing interface for that file type.
If CloudCannon cannot determine an appropriate editing interface, it will show a warning.
Appears in
└── collections_config
└── *
└── add_options
└── [*]
└── Add Option
└── editorType
string
Allowed values
visualcontentdataExamples
In this example, we have configured a standard add option for the people Collection that opens new files in the Data Editor.
Copied to clipboard
collections_config:
people:
add_options:
- name: Add Staff Member
schema: employee
icon: face
editor: data
schemas:
employee:
path: /.cloudcannon/schemas/employee.yml{
"collections_config": {
"people": {
"add_options": [
{
"name": "Add Staff Member",
"schema": "employee",
"icon": "face",
"editor": "data"
}
],
"schemas": {
"employee": {
"path": "/.cloudcannon/schemas/employee.yml"
}
}
}
}
}