-
-
Notifications
You must be signed in to change notification settings - Fork 223
/
Document.yaml
81 lines (81 loc) · 2.27 KB
/
Document.yaml
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
75
76
77
78
79
80
81
# Abstract Document type.
# "Documents" always have a publicly-visible URL.
# Anything page-like (like a blog post) should subclass "Neos.Neos:Document".
'Neos.Neos:Document':
superTypes:
'Neos.Neos:Node': true
'Neos.Neos:Hidable': true
'Neos.Neos:Timable': true
abstract: true
aggregate: true
constraints:
nodeTypes:
'*': false
# explicitly disallow to create a homepage below a regular document
'Neos.Neos:Site': false
'Neos.Neos:Document': true
postprocessors:
'CreationDialogPostprocessor':
position: 'after NodeTypePresetPostprocessor'
postprocessor: 'Neos\Neos\NodeTypePostprocessor\CreationDialogPostprocessor'
options:
nodeCreationHandlers:
documentTitle:
nodeCreationHandler: 'Neos\Neos\Ui\NodeCreationHandler\DocumentTitleNodeCreationHandler'
creationDialogProperties:
nodeCreationHandler: 'Neos\Neos\Ui\NodeCreationHandler\CreationDialogPropertiesCreationHandler'
ui:
label: 'Document'
group: 'general'
search:
searchCategory: 'Documents'
inspector:
groups:
document:
label: i18n
position: 10
icon: 'icon-file'
properties:
_nodeType:
ui:
inspector:
editorOptions:
baseNodeType: 'Neos.Neos:Document'
title:
type: string
ui:
label: i18n
reloadPageIfChanged: true
showInCreationDialog: true
inspector:
group: 'document'
validation:
'Neos.Neos/Validation/NotEmptyValidator': []
'Neos.Neos/Validation/StringLengthValidator':
minimum: 1
maximum: 255
uriPathSegment:
type: string
ui:
label: i18n
reloadPageIfChanged: true
inspector:
group: 'document'
validation:
'Neos.Neos/Validation/NotEmptyValidator': []
'Neos.Neos/Validation/StringLengthValidator':
minimum: 1
maximum: 255
'Neos.Neos/Validation/RegularExpressionValidator':
regularExpression: '/^[a-z0-9\-]+$/i'
_hidden:
ui:
reloadPageIfChanged: true
_hiddenInIndex:
type: boolean
ui:
label: i18n
reloadPageIfChanged: true
inspector:
group: 'visibility'
position: 40