-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.yml
341 lines (341 loc) · 9.47 KB
/
recipe.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
name: 'Saplings - Events'
description: 'Creates a Search Engine Optimized Event system.'
type: 'Site'
recipes:
- core/recipes/content_editor_role
- events
- events_calendar
- events_locations
- saplings-content-base-header
- saplings-content-base-seo
install:
# Core.
- image
- link
- link_attributes
- media
- node
- options
- taxonomy
# Contrib.
- access_unpublished
- field_group
- metatag
- metatag_open_graph
- metatag_twitter_cards
- pathauto
- publication_date
- quick_node_clone
- schema_event
- token
- token_or
- view_unpublished
config:
strict:
- field.storage.node.sa_attendance_mode
- field.storage.node.sa_availability
- field.storage.node.sa_cost
- field.storage.node.sa_currency
- field.storage.node.sa_event_category
- field.storage.node.sa_event_status
- field.storage.node.sa_event_type
- field.storage.node.sa_register_link
- field.storage.node.sa_validfrom
- field.storage.node.sa_virtuallocation
- taxonomy.vocabulary.sa_event_category
actions:
# Set fields on the Event form.
core.entity_form_display.node.event.default:
setComponents:
-
name: published_at
options:
type: publication_date_timestamp
weight: 16
region: content
settings: { }
third_party_settings: { }
-
name: sa_attendance_mode
options:
type: options_buttons
weight: 4
region: content
settings: { }
third_party_settings: { }
-
name: sa_availability
options:
type: options_select
weight: 8
region: content
settings: { }
third_party_settings: { }
-
name: sa_cost
options:
type: number
weight: 10
region: content
settings:
placeholder: ''
third_party_settings: { }
-
name: sa_currency
options:
type: options_select
weight: 11
region: content
settings: { }
third_party_settings: { }
-
name: sa_event_category
options:
type: options_buttons
weight: 5
region: content
settings: { }
third_party_settings: { }
-
name: sa_event_status
options:
type: options_buttons
weight: 3
region: content
settings: { }
third_party_settings: { }
-
name: sa_event_type
options:
type: options_select
weight: 6
region: content
settings: { }
third_party_settings: { }
-
name: sa_register_link
options:
type: link_default
weight: 12
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
-
name: sa_validfrom
options:
type: datetime_default
weight: 9
region: content
settings: { }
third_party_settings: { }
-
name: sa_virtuallocation
options:
type: link_default
weight: 4
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
# Moves fields into Tabs.
setThirdPartySettings:
- module: field_group
key: group_administration
value:
children:
- group_content
- group_location
- group_event_details
- group_event_pricing
label: Administration
region: content
parent_name: ''
weight: 1
format_type: tabs
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
direction: horizontal
width_breakpoint: 640
- module: field_group
key: group_content
value:
children:
- body
label: Content
region: content
parent_name: group_administration
weight: 21
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
- module: field_group
key: group_event_details
value:
children:
- field_when
- sa_event_status
- sa_attendance_mode
- sa_event_category
- sa_event_type
label: 'Event details'
region: content
parent_name: group_administration
weight: 23
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
- module: field_group
key: group_event_pricing
value:
children:
- sa_availability
- sa_validfrom
- sa_cost
- sa_currency
- sa_register_link
label: 'Event pricing'
region: content
parent_name: group_administration
weight: 24
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
- module: field_group
key: group_location
value:
children:
- field_where
- sa_virtuallocation
label: 'Location or URL'
region: content
parent_name: group_administration
weight: 22
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
# Removes fields we don't use.
hideComponents:
- promote
- sticky
# Location form.
core.entity_form_display.node.location.default:
# Move content into tabs.
setThirdPartySettings:
- module: field_group
key: group_administration
value:
children:
- group_content
label: Administration
region: content
parent_name: ''
weight: 1
format_type: tabs
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
direction: horizontal
width_breakpoint: 640
- module: field_group
key: group_content
value:
children:
- field_location_address
- field_location_telephone
- body
label: Content
region: content
parent_name: group_administration
weight: 21
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
formatter: closed
description: ''
required_fields: true
# Hides fields we don't use.
hideComponents:
- promote
- sticky
# Hide links on all Event displays.
core.entity_view_display.node.event.*:
hideComponent: links
# Hide links on all Location displays.
core.entity_view_display.node.location.*:
hideComponent: links
# Set the default country in the address field.
field.field.node.location.field_location_address:
setDefaultValue:
langcode: null
country_code: US
administrative_area: ''
locality: ''
dependent_locality: null
postal_code: ''
sorting_code: null
address_line1: ''
address_line2: ''
address_line3: null
organization: null
given_name: null
additional_name: null
family_name: null
# Set permissions for anonymous role.
user.role.anonymous:
createIfNotExists:
id: anonymous
grantPermissions:
- 'access_unpublished node event'
# Set permissions for content editor role.
user.role.content_editor:
createIfNotExists:
id: content_editor
grantPermissions:
- 'access_unpublished node event'
- 'clone event content'
- 'create event content'
- 'create terms in sa_event_category'
- 'delete own event content'
- 'delete event revisions'
- 'edit any event content'
- 'edit own event content'
- 'edit terms in sa_event_category'
- 'revert event revisions'
- 'set event published on date'
- 'view any unpublished event content'
- 'view event revisions'