- Description:
This key defines which file or folder data in your Site is available to populate Select Inputs.
- Type:
Object<data_config.*>- Values:
This key defines what data sets are available to populate Select Inputs.
Show examplesHide examples
In this example, we have configured data config entries for both a CSV file and a folder of files.
Copied to clipboarddata_config: authors: path: data/authors.csv offices: path: data/offices{ "data_config": { "authors": { "path": "data/authors.csv" }, "offices": { "path": "data/offices" } } }Configure all data files or folders under the
data_configkey in your CloudCannon configuration file.Select Inputs and Multiselect Inputs which use the
authorskey are populated by the contents of theauthors.csvfile.Select Inputs and Multiselect Inputs which use the
officeskey are populated by the contents of each file in theofficesfolder.- Examples:
In this example, we have configured data config to make data files available for Select Inputs and Multiselect Inputs.
Copied to clipboarddata_config: authors: path: data/authors.csv offices: path: data/offices{ "data_config": { "authors": { "path": "data/authors.csv" }, "offices": { "path": "data/offices" } } }Configure all data files or folders under the
data_configkey in your CloudCannon configuration file.Select Inputs and Multiselect Inputs which use the
authorskey are populated by the contents of theauthors.csvfile.Select Inputs and Multiselect Inputs which use the
officeskey are populated by the contents of each file in theofficesfolder.