eventSubmission.form.yaml 13.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11

renderingOptions:
  submitButtonLabel: Submit
type: Form
identifier: eventSubmission
label: 'Event Submission'
prototypeName: standard
finishers:
  -
    identifier: T3oSaveToDatabase
    options:
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
      -
        table: tx_sfeventmgt_domain_model_location
        mode: insert
        slugFieldName: 'slug'
        requiredFields:
          - newLocationTitle
        defaultInsertedUidIfEmpty: 0
        elements:
          newLocationTitle:
            mapOnDatabaseColumn: 'title'
          newLocationAddress:
            mapOnDatabaseColumn: 'address'
          newLocationZip:
            mapOnDatabaseColumn: 'zip'
          newLocationCity:
            mapOnDatabaseColumn: 'city'
          newLocationCountry:
            mapOnDatabaseColumn: 'country'
          newLocationLink:
            mapOnDatabaseColumn: 'link'
          newLocationLatitude:
            mapOnDatabaseColumn: 'latitude'
          newLocationLongitude:
            mapOnDatabaseColumn: 'longitude'
          newLocationDescription:
            mapOnDatabaseColumn: 'description'
        databaseColumnMappings:
          pid:
            value: 180
41
42
43
      -
        table: 'tx_sfeventmgt_domain_model_event'
        mode: insert
44
        slugFieldName: 'slug'
45
46
47
48
49
50
51
52
53
54
55
56
57
58
        userdata:
          uid: 0
          __newEventStatus: 1
        databaseColumnMappings:
          pid:
            value: 180
          hidden:
            value: '{T3oSaveToDatabase.feuser.__newEventStatus}'
          author_fe_user:
            value: '{T3oSaveToDatabase.feuser.uid}'
          crdate:
            value: '{__currentTimestamp}'
          tstamp:
            value: '{__currentTimestamp}'
59
60
61
          location:
            value: '{T3oSaveToDatabase.insertedUids.0}'
            skipIfValueIsEmpty: true
62
63
64
65
66
67
68
        elements:
          fileupload:
            mapOnDatabaseColumn: 'image'
          title:
            mapOnDatabaseColumn: 'title'
          startdate:
            mapOnDatabaseColumn: 'startdate'
69
            addTimeFromField: 'starttime'
70
71
          enddate:
            mapOnDatabaseColumn: 'enddate'
72
            addTimeFromField: 'endtime'
73
74
75
76
77
78
79
80
          publishstartdate:
            mapOnDatabaseColumn: 'starttime'
            addTimeFromField: 'publishstarttime'
            skipIfValueIsEmpty: true
          publishenddate:
            mapOnDatabaseColumn: 'endtime'
            addTimeFromField: 'publishendtime'
            skipIfValueIsEmpty: true
81
82
83
84
          teaser:
            mapOnDatabaseColumn: 'teaser'
          description:
            mapOnDatabaseColumn: 'description'
85
86
          location:
            mapOnDatabaseColumn: 'location'
87
            skipIfValueIsEmpty: true
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
          link:
            mapOnDatabaseColumn: 'link'
          program:
            mapOnDatabaseColumn: 'program'
          room:
            mapOnDatabaseColumn: 'room'
      -
        table: sys_file_reference
        mode: insert
        elements:
          image:
            mapOnDatabaseColumn: 'uid_local'
            skipIfValueIsEmpty: true
        databaseColumnMappings:
          table_local:
            value: 'sys_file'
          tablenames:
            value: 'tx_sfeventmgt_domain_model_event'
          fieldname:
            value: 'image'
          tstamp:
            value: '{__currentTimestamp}'
          crdate:
            value: '{__currentTimestamp}'
          uid_foreign:
113
            value: '{T3oSaveToDatabase.insertedUids.1}'
114
115
116
117
      -
        table: 'sys_file_reference'
        mode: update
        whereClause:
118
          uid_foreign: '{T3oSaveToDatabase.insertedUids.1}'
119
120
121
122
123
124
          uid_local: 0
        databaseColumnMappings:
          pid:
            value: 0
          uid_foreign:
            value: 0
125
126
127
128
129
130
131
132
133
134
135
136
      -
        table: sys_category_record_mm
        mode: insert
        elements:
          category:
            mapOnDatabaseColumn: 'uid_local'
        databaseColumnMappings:
          tablenames:
            value: 'tx_sfeventmgt_domain_model_event'
          fieldname:
            value: 'category'
          uid_foreign:
137
            value: '{T3oSaveToDatabase.insertedUids.1}'
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
  -
    options:
      subject: 'new Event submitted on typo3.org'
      recipients:
        t3o@typo3.org: 'TYPO3 T3O team'
      senderAddress: noreply@typo3.org
      senderName: typo3.org
      addHtmlPart: true
      attachUploads: false
      useFluidEmail: false
      title: 'new Event submitted on typo3.org'
      #templateName: 'EventSubmission{@format}.html'
    identifier: EmailToReceiver
  -
    options:
      message: 'Thank You!'
    identifier: Confirmation
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        defaultValue: ''
        type: Text
        identifier: title
        label: Title
        properties:
          elementDescription: 'Enter a descriptive title for the event'
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        type: GridRow
178
        identifier: gridrow-event-datetimes
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
        label: 'Grid: Row'
        renderables:
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              step: 1
              required: required
            elementDescription: 'The date this event starts'
          type: Date
          identifier: startdate
          label: 'Start date'
          validators:
            -
              identifier: NotEmpty
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              required: required
            elementDescription: 'The time this event starts (hh:mm)'
          type: Text
          identifier: starttime
          label: 'Start time'
          validators:
            -
              identifier: NotEmpty
            -
              identifier: RegularExpression
              options:
                regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              min: ''
              max: ''
              step: 1
              required: required
            elementDescription: 'The date this event ends'
          type: Date
          identifier: enddate
          label: 'End date'
          validators:
            -
              identifier: NotEmpty
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              required: required
            elementDescription: 'The time this event ends (hh:mm)'
          type: Text
          identifier: endtime
          label: 'End time'
          validators:
            -
              identifier: NotEmpty
            -
              identifier: RegularExpression
              options:
                regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'
241
242
243
244
245
246
247
248
249
250
251
252
253
254
      -
        defaultValue: ''
        type: Textarea
        identifier: teaser
        label: Teaser
        properties:
          elementDescription: 'short description'
      -
        defaultValue: ''
        type: Textarea
        identifier: description
        label: Description
        properties:
          elementDescription: 'full description of the event'
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
      -
        defaultValue: ''
        type: Hidden
        identifier: location
        label: Location
        properties:
          elementDescription: ''
      -
        defaultValue: ''
        type: Text
        identifier: locationSearch
        label: Location
        properties:
          elementDescription: ''
          elementClassAttribute: 'js__eventsubmissionform__location-search_input'
          fluidAdditionalAttributes:
            data-location-search-target: 'location'
272
273
274
275
      - type: Fieldset
        identifier: fieldset-event-new-location
        label: 'OR add new location'
        properties:
276
          elementClassAttribute: 'js__eventsubmissionform__new-location-field-container'
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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
        renderables:
          -
            defaultValue: ''
            type: Text
            identifier: newLocationTitle
            label: Location title
            properties:
              elementDescription: ''
          -
            defaultValue: ''
            type: Textarea
            identifier: newLocationAddress
            label: Location Address
            properties:
              elementDescription: ''
          -
            type: GridRow
            identifier: gridrow-event-newlocation-1
            label: 'Grid: Row'
            renderables:
              -
                defaultValue: ''
                type: Text
                identifier: newLocationZip
                label: Location zip
                properties:
                  elementDescription: ''
              -
                defaultValue: ''
                type: Text
                identifier: newLocationCity
                label: Location city
                properties:
                  elementDescription: ''
          -
            type: GridRow
            identifier: gridrow-event-newlocation-2
            label: 'Grid: Row'
            renderables:
              -
                defaultValue: ''
                type: Text
                identifier: newLocationCountry
                label: Location country
                properties:
                  elementDescription: ''
              -
                defaultValue: ''
                type: Url
                identifier: newLocationLink
                label: Location link
                properties:
                  elementDescription: ''
          -
            type: GridRow
            identifier: gridrow-event-newlocation-3
            label: 'Grid: Row'
            renderables:
              -
                defaultValue: ''
                type: Text
                identifier: newLocationLatitude
                label: Location latitude
                validators:
                  -
                    identifier: NumberRange
                    options:
                      minimum: -90
                      maximum: 90
                properties:
                  elementDescription: ''
              -
                defaultValue: ''
                type: Text
                identifier: newLocationLongitude
                label: Location longitude
                validators:
                  -
                    identifier: NumberRange
                    options:
                      minimum: -180
                      maximum: 180
                properties:
                  elementDescription: ''
          -
            defaultValue: ''
            type: Textarea
            identifier: newLocationDescription
            label: Location description
            properties:
              elementDescription: ''
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
      -
        defaultValue: ''
        type: Url
        identifier: link
        label: Link
        properties:
          elementDescription: 'link to an event site'
      -
        defaultValue: ''
        type: Textarea
        identifier: program
        label: 'Program / Schedule'
      -
        properties:
          systemCategory:
            uid: 34
            exclude: 36
          prependOptionLabel: 'Please select...'
          fluidAdditionalAttributes:
            required: required
        type: SingleSelectWithSystemCategory
        identifier: category
        label: 'Category'
      -
        defaultValue: ''
        type: Text
        identifier: room
        label: Room
        properties:
          elementDescription: 'room name or number'
      -
        properties:
          saveToFileMount: '1:/user_upload/'
          allowedMimeTypes:
            - image/jpeg
            - image/png
        type: ImageUpload
        identifier: image
Jonas Götze's avatar
Jonas Götze committed
406
        label: Images
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
      -
        type: GridRow
        identifier: gridrow-publish-datetimes
        label: 'Grid: Row'
        renderables:
          -
            defaultValue: ''
            properties:
              fluidAdditionalAttributes:
                step: 1
              elementDescription: 'The date from which on this event will be visible'
            type: Date
            identifier: publishstartdate
            label: 'Publish from date'
          -
            defaultValue: ''
            properties:
              elementDescription: 'The time from which on this event will be visible (hh:mm)'
            type: Text
            identifier: publishstarttime
            label: 'Publish from time'
            validators:
              -
                identifier: RegularExpression
                options:
                  regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'
          -
            defaultValue: ''
            properties:
              fluidAdditionalAttributes:
                min: ''
                max: ''
                step: 1
              elementDescription: 'The date from which on this event will no be visible anymore'
            type: Date
            identifier: publishenddate
            label: 'Publish end date'
          -
            defaultValue: ''
            properties:
              elementDescription: 'The time from which on this event will not be visible anymore (hh:mm)'
            type: Text
            identifier: publishendtime
            label: 'Publish end time'
            validators:
              -
                identifier: RegularExpression
                options:
                  regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'