Skip to content

Commit 97e6a76

Browse files
committed
TASK: Improved node presets
1 parent 747591f commit 97e6a76

File tree

1 file changed

+51
-4
lines changed

1 file changed

+51
-4
lines changed

DistributionPackages/CodeQ.Site/Configuration/Settings.NodePresets.yaml

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Neos:
1313
placeholder: 'Enter headline here...'
1414
hyphens: true
1515
formatting:
16-
h1: true
16+
h1: false
1717
h2: true
1818
h3: true
1919
h4: true
@@ -45,11 +45,11 @@ Neos:
4545
sub: true
4646
sup: true
4747
p: true
48-
h1: true
48+
h1: false
4949
h2: true
5050
h3: true
51-
h4: false
52-
h5: false
51+
h4: true
52+
h5: true
5353
h6: false
5454
pre: false
5555
table: true
@@ -73,11 +73,58 @@ Neos:
7373
inspector:
7474
group: 'general'
7575
position: 50
76+
'assets':
77+
type: array<Neos\Media\Domain\Model\Asset>
78+
ui:
79+
label: 'Images'
80+
editor: Neos.Neos/Inspector/Editors/AssetEditor
81+
editorOptions:
82+
multiple: true
83+
features:
84+
upload: true
85+
mediaBrowser: true
86+
reloadIfChanged: true
87+
inspector:
88+
group: 'general'
89+
position: 50
90+
'squareAsset':
91+
type: Neos\Media\Domain\Model\ImageInterface
92+
ui:
93+
label: 'Image'
94+
reloadIfChanged: true
95+
inspector:
96+
group: 'general'
97+
position: 50
98+
editorOptions:
99+
crop:
100+
aspectRatio:
101+
enableOriginal: false
102+
allowCustom: false
103+
locked:
104+
width: 1
105+
height: 1
76106
'alternativeText':
77107
type: string
78108
ui:
79109
label: 'Alternative image text'
110+
help:
111+
message: 'This text is used for accessibility and for search engine optimization.'
80112
reloadIfChanged: false
81113
inspector:
82114
group: 'general'
83115
position: 100
116+
'date':
117+
createdAt:
118+
type: DateTime
119+
defaultValue: now
120+
ui:
121+
label: 'Publication date'
122+
reloadIfChanged: true
123+
inspector:
124+
group: 'document'
125+
position: 'after uriPathSegment'
126+
editorOptions:
127+
format: 'd.m.Y'
128+
validation:
129+
Neos.Neos/Validation/NotEmptyValidator: { }
130+
Neos.Neos/Validation/DateTimeValidator: { }

0 commit comments

Comments
 (0)