- Description:
This key defines globs that filter which files CloudCannon should use for Structure value configuration.
Values in this array are relative to the root of your repository (i.e.,
/, not the value ofsource) and must end in the file extension.cloudcannon.structure-value.yml(note the singular form of "value").You can use this key anywhere you would use the
_structures.*.valueskey.Please see our documentation on structures_from_glob for defining a Structure in a split Configuration File.
This key has no default.
- Appears in:
└── Structure └── values_from_glob- Type:
Array<values_from_glob[*]>- Items:
This key represents an individual glob pattern string in the
values_from_globarray.The value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension
.cloudcannon.structure-value.yml(note the singular form of "value").Show examplesHide examples
In this example, the
staffArray Input uses inline Structure values from the main Configuration File and also references another value from theboardMember.cloudcannon.structure-value.ymlin the/.cloudcannon/structures/folder.Copied to clipboard_inputs: staff: type: array options: structures: values_from_glob: /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml values: - label: Employee value: name: title: profile_picture: - label: Manager value: name: title: profile_picture: url:{ "_inputs": { "staff": { "type": "array", "options": { "structures": null, "values_from_glob": "/.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml", "values": [ { "label": "Employee", "value": { "name": null, "title": null, "profile_picture": null } }, { "label": "Manager", "value": { "name": null, "title": null, "profile_picture": null, "url": null } } ] } } } }- Examples:
In this example, the
staffArray Input uses inline Structure values from the main Configuration File and also references another value from theboardMember.cloudcannon.structure_value.ymlin the/.cloudcannon/structures/folder.Copied to clipboard_inputs: staff: type: array options: structures: values_from_glob: /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml values: - label: Employee value: name: title: profile_picture: - label: Manager value: name: title: profile_picture: url:{ "_inputs": { "staff": { "type": "array", "options": { "structures": null, "values_from_glob": "/.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml", "values": [ { "label": "Employee", "value": { "name": null, "title": null, "profile_picture": null } }, { "label": "Manager", "value": { "name": null, "title": null, "profile_picture": null, "url": null } } ] } } } }- Copied to clipboard
label: Board value: name: title: profile_picture: url: description:{ "label": "Board", "value": { "name": null, "title": null, "profile_picture": null, "url": null, "description": null } }