eventSubmission.form.yaml 8.73 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14

renderingOptions:
  submitButtonLabel: Submit
type: Form
identifier: eventSubmission
label: 'Event Submission'
prototypeName: standard
finishers:
  -
    identifier: T3oSaveToDatabase
    options:
      -
        table: 'tx_sfeventmgt_domain_model_event'
        mode: insert
15
        slugFieldName: 'slug'
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
        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}'
        elements:
          fileupload:
            mapOnDatabaseColumn: 'image'
          title:
            mapOnDatabaseColumn: 'title'
          startdate:
            mapOnDatabaseColumn: 'startdate'
37
            addTimeFromField: 'starttime'
38
39
          enddate:
            mapOnDatabaseColumn: 'enddate'
40
            addTimeFromField: 'endtime'
41
42
43
44
45
46
47
48
          publishstartdate:
            mapOnDatabaseColumn: 'starttime'
            addTimeFromField: 'publishstarttime'
            skipIfValueIsEmpty: true
          publishenddate:
            mapOnDatabaseColumn: 'endtime'
            addTimeFromField: 'publishendtime'
            skipIfValueIsEmpty: true
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
          teaser:
            mapOnDatabaseColumn: 'teaser'
          description:
            mapOnDatabaseColumn: 'description'
          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:
            value: '{T3oSaveToDatabase.insertedUids.0}'
79
80
81
82
83
84
85
86
87
88
89
      -
        table: 'sys_file_reference'
        mode: update
        whereClause:
          uid_foreign: '{T3oSaveToDatabase.insertedUids.0}'
          uid_local: 0
        databaseColumnMappings:
          pid:
            value: 0
          uid_foreign:
            value: 0
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
      -
        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:
            value: '{T3oSaveToDatabase.insertedUids.0}'

  -
    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
144
        identifier: gridrow-event-datetimes
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
        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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
        -
          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])$/'
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
        -
          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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
        -
          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])$/'
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
      -
        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'
      -
        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
259
        label: Image
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
      -
        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])$/'