This key defines how CloudCannon shows Structure options to populate an Object or Array input.
This can be using a select-style search bar or a pop-up modal.
Modals are useful when you have several value options for your Structure.
Values can be one of the following: select, or modal.
Appears in
Type
string
Default value
select
Allowed values
selectmodalExamples
In this example, the related_articles Structure only has one option so a select searchbar is appropriate.
Copied to clipboard
_structures:
related_articles:
style: select
values:
- value:
name:
description:
url:{
"_structures": {
"related_articles": {
"style": "select",
"values": [
{
"value": null,
"name": null,
"description": null,
"url": null
}
]
}
}
}