This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
extension.json
74 lines (74 loc) · 2.38 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"id": "better-slugs",
"name": "Better Slugs",
"srcdoc": "./build/index.html",
"fieldTypes": ["Symbol"],
"parameters": {
"instance": [
{
"id": "pattern",
"name": "Slug Pattern",
"description": "Use replacement tokens: [locale], [field:name], [field:reference:name], e.g. [locale]/[field:category:title]/[field:title]",
"type": "Symbol",
"required": true,
"default": "[field:title]"
},
{
"id": "translations1",
"name": "String translations 1",
"description": "To provide translations from a string, for example having a pattern like /products/[field:name] and nl, fr and de locales, you can use products=nl:producten,fr:produits,de:produkte",
"type": "Symbol",
"required": false,
"default": ""
},
{
"id": "translations2",
"name": "String translations 2",
"description": "Optional translations for a second string (if it exists)",
"type": "Symbol",
"required": false,
"default": ""
},
{
"id": "translations3",
"name": "String translations 3",
"description": "Optional translations for a third string (if it exists)",
"type": "Symbol",
"required": false,
"default": ""
},
{
"id": "displayDefaultLocale",
"name": "Display the default locale",
"description": "When using the [locale] token, display or hide the locale in the slug for the default locale.",
"type": "Boolean",
"required": true,
"default": true
},
{
"id": "lockWhenPublished",
"name": "Do not update slug if entry is published",
"description": "If the entry is published sometimes is desirable to not change the slug",
"type": "Boolean",
"required": true,
"default": false
},
{
"id": "hideReset",
"name": "Hide the reset button",
"description": "If enabled it will hide the reset button",
"type": "Boolean",
"required": false,
"default": false
},
{
"id": "caseOption",
"name": "Case Option",
"description": "Set the case mode (if not defined uses lowercase)",
"type": "Enum",
"required": false,
"options": [{"maintainCase": "Maintain Case"}, {"titleCase": "Title Case"}]
}
]
}
}