Reference Fields
Assets
Create a lists of assets
Settings
In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.
Note:
You can find a comprehensive list of all basic settings in the 'Overview' section.
| Option | Description |
|---|---|
Restrict types | Restrict the types of assets that can be added to this assets list |
Size | The maximum number of assets that can be added to this assets list |
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-assets - Type:
assets - Reference ID:
str-assets
The settings above map into the editor.attributes object inside the JSON definition.
{
...
"editor": {
"name": "str-assets",
"type": "assets",
"propertyName": "...",
"attributes": {
"size": 3,
},
"options": {
"availableTypes": [...] //1(image)|2(video)|3(file)
}
},
...
}Live preview
Note:
This field does not have any default Strife Web Components. Custom live preview implementations are fully supported.
Note:
For more information on live preview and Strife Web Components, please refer to the Live preview documentation.