This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
extension.json
51 lines (51 loc) · 1.6 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"id": "simple-reference",
"name": "Simple Reference",
"srcdoc": "./build/index.html",
"fieldTypes": ["Symbol", "Entry", "Entries"],
"parameters": {
"instance": [
{
"id": "limit",
"name": "Limit number of entries",
"description": "An hard limit of 100 would override this definition",
"type": "Symbol",
"required": false,
"default": "20"
},
{
"id": "display",
"name": "Display",
"description": "Set field id to be used to display selected entry",
"type": "Symbol",
"required": true,
"default": "title"
},
{
"id": "widget",
"name": "Widget Type",
"description": "Use Dropdown/Radios only for single reference",
"type": "Enum",
"required": false,
"options": [{ "dropdown": "Dropdown" }, { "radios": "Radios" }],
"labels": { "empty": "Choose one option" }
},
{
"id": "defaultValue",
"name": "Default Value (regex)",
"description": "Use a valid regex (tested against display field and contentful id) to pre-select items e.g. (id1|id2|id3) or (web|cms|media.*)",
"type": "Symbol",
"required": false,
"default": ""
},
{
"id": "filter",
"name": "Filter Query",
"description": "Set one or more filters (separated by |) to be applied when retrieving the collection entries. (e.g. fields.channel.sys.contentType.sys.id:name|fields.channel.fields.name[match]:web)",
"type": "Symbol",
"required": false,
"default": ""
}
]
}
}