[TASK] Change upper limits for endtime of various records
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / pages_language_overlay.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages_language_overlay',
7 'versioningWS' => true,
8 'origUid' => 't3_origuid',
9 'crdate' => 'crdate',
10 'hideAtCopy' => 1,
11 'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
12 'cruser_id' => 'cruser_id',
13 'delete' => 'deleted',
14 'enablecolumns' => [
15 'disabled' => 'hidden',
16 'starttime' => 'starttime',
17 'endtime' => 'endtime'
18 ],
19 'transOrigPointerField' => 'pid',
20 'transOrigDiffSourceField' => 'l18n_diffsource',
21 'shadowColumnsForNewPlaceholders' => 'title',
22 'languageField' => 'sys_language_uid',
23 'type' => 'doktype',
24 'typeicon_classes' => [
25 'default' => 'mimetypes-x-content-page-language-overlay'
26 ],
27 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url'
28 ],
29 'interface' => [
30 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
31 ],
32 'columns' => [
33 'doktype' => $GLOBALS['TCA']['pages']['columns']['doktype'],
34 'hidden' => [
35 'exclude' => true,
36 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden',
37 'config' => [
38 'type' => 'check',
39 'default' => 0,
40 'items' => [
41 '1' => [
42 '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_checkbox_1_formlabel'
43 ]
44 ]
45 ]
46 ],
47 'starttime' => [
48 'exclude' => true,
49 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
50 'config' => [
51 'type' => 'input',
52 'renderType' => 'inputDateTime',
53 'eval' => 'datetime',
54 'default' => 0
55 ]
56 ],
57 'endtime' => [
58 'exclude' => true,
59 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
60 'config' => [
61 'type' => 'input',
62 'renderType' => 'inputDateTime',
63 'eval' => 'datetime',
64 'default' => 0,
65 'range' => [
66 'upper' => mktime(0, 0, 0, 1, 1, 2038)
67 ]
68 ]
69 ],
70 'title' => [
71 'l10n_mode' => 'prefixLangTitle',
72 'label' => $GLOBALS['TCA']['pages']['columns']['title']['label'],
73 'config' => [
74 'type' => 'input',
75 'size' => 50,
76 'max' => 255,
77 'eval' => 'trim,required'
78 ]
79 ],
80 'subtitle' => [
81 'exclude' => true,
82 'label' => $GLOBALS['TCA']['pages']['columns']['subtitle']['label'],
83 'config' => [
84 'type' => 'input',
85 'size' => 50,
86 'max' => 255,
87 'eval' => 'trim'
88 ]
89 ],
90 'nav_title' => [
91 'exclude' => true,
92 'label' => $GLOBALS['TCA']['pages']['columns']['nav_title']['label'],
93 'config' => [
94 'type' => 'input',
95 'size' => 50,
96 'max' => 255,
97 'eval' => 'trim'
98 ]
99 ],
100 'keywords' => [
101 'exclude' => true,
102 'label' => $GLOBALS['TCA']['pages']['columns']['keywords']['label'],
103 'config' => [
104 'type' => 'text',
105 'cols' => 40,
106 'rows' => 3
107 ]
108 ],
109 'description' => [
110 'exclude' => true,
111 'label' => $GLOBALS['TCA']['pages']['columns']['description']['label'],
112 'config' => [
113 'type' => 'text',
114 'cols' => 40,
115 'rows' => 3
116 ]
117 ],
118 'abstract' => [
119 'exclude' => true,
120 'label' => $GLOBALS['TCA']['pages']['columns']['abstract']['label'],
121 'config' => [
122 'type' => 'text',
123 'cols' => 40,
124 'rows' => 3
125 ]
126 ],
127 'author' => [
128 'exclude' => true,
129 'label' => $GLOBALS['TCA']['pages']['columns']['author']['label'],
130 'config' => [
131 'type' => 'input',
132 'size' => 23,
133 'eval' => 'trim',
134 'max' => 80
135 ]
136 ],
137 'author_email' => [
138 'exclude' => true,
139 'label' => $GLOBALS['TCA']['pages']['columns']['author_email']['label'],
140 'config' => [
141 'type' => 'input',
142 'size' => 23,
143 'eval' => 'trim',
144 'max' => 80,
145 'softref' => 'email[subst]'
146 ]
147 ],
148 'media' => [
149 'exclude' => true,
150 'label' => $GLOBALS['TCA']['pages']['columns']['media']['label'],
151 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media', [
152 // Use the imageoverlayPalette instead of the basicoverlayPalette
153 'overrideChildTca' => [
154 'types' => [
155 '0' => [
156 'showitem' => '
157 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
158 --palette--;;filePalette'
159 ],
160 \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
161 'showitem' => '
162 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
163 --palette--;;filePalette'
164 ],
165 \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
166 'showitem' => '
167 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
168 --palette--;;filePalette'
169 ],
170 \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
171 'showitem' => '
172 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,
173 --palette--;;filePalette'
174 ],
175 \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
176 'showitem' => '
177 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
178 --palette--;;filePalette'
179 ],
180 \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
181 'showitem' => '
182 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
183 --palette--;;filePalette'
184 ]
185 ],
186 ],
187 ]
188 )
189 ],
190 'url' => [
191 'exclude' => true,
192 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url',
193 'config' => [
194 'type' => 'input',
195 'size' => 23,
196 'max' => 255,
197 'eval' => 'trim',
198 'softref' => 'url'
199 ]
200 ],
201 'urltype' => [
202 'exclude' => true,
203 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.type',
204 'config' => [
205 'type' => 'select',
206 'renderType' => 'selectSingle',
207 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'],
208 'default' => '1'
209 ]
210 ],
211 'shortcut' => [
212 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.shortcut_page',
213 'config' => [
214 'type' => 'group',
215 'internal_type' => 'db',
216 'allowed' => 'pages',
217 'size' => 1,
218 'maxitems' => 1,
219 'minitems' => 0,
220 'default' => 0
221 ]
222 ],
223 'shortcut_mode' => [
224 'exclude' => true,
225 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode',
226 'config' => [
227 'type' => 'select',
228 'renderType' => 'selectSingle',
229 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
230 'default' => 0
231 ]
232 ],
233 'sys_language_uid' => [
234 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
235 'config' => [
236 'type' => 'select',
237 'renderType' => 'selectSingle',
238 'foreign_table' => 'sys_language',
239 'foreign_table_where' => 'ORDER BY sys_language.sorting',
240 'items' => [], // no default language here, as the pages table is always the default language
241 'default' => 0,
242 'fieldWizard' => [
243 'selectIcons' => [
244 'disabled' => false,
245 ],
246 ],
247 ]
248 ],
249 'l18n_diffsource' => [
250 'config' => [
251 'type' => 'passthrough',
252 'default' => ''
253 ]
254 ],
255 't3ver_label' => [
256 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
257 'config' => [
258 'type' => 'input',
259 'size' => 30,
260 'max' => 255
261 ]
262 ]
263 ],
264 'types' => [
265 // normal
266 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => [
267 'showitem' => '
268 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
269 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
270 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
271 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
272 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
273 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
274 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
275 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
276 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
277 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
278 sys_language_uid,
279 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
280 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
281 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
282 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
283 '
284 ],
285 // external URL
286 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => [
287 'showitem' => '
288 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
289 doktype,
290 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
291 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
292 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
293 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
294 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
295 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
296 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
297 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
298 sys_language_uid,
299 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
300 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
301 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
302 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
303 '
304 ],
305 // shortcut
306 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => [
307 'showitem' => '
308 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
309 doktype,
310 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
311 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
312 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
313 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
314 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
315 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
316 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
317 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
318 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
319 sys_language_uid,
320 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
321 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
322 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
323 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
324 '
325 ],
326 // mount page
327 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => [
328 'showitem' => '
329 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
330 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
331 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
332 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
333 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
334 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
335 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
336 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
337 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
338 sys_language_uid,
339 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
340 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
341 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
342 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
343 '
344 ],
345 // spacer
346 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => [
347 'showitem' => '
348 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
349 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
350 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
351 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
352 sys_language_uid,
353 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
354 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
355 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
356 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
357 '
358 ],
359 // sysfolder
360 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => [
361 'showitem' => '
362 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
363 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
364 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
365 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
366 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
367 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
368 sys_language_uid,
369 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
370 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
371 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
372 '
373 ],
374 // trash
375 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => [
376 'showitem' => '
377 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
378 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
379 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
380 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
381 sys_language_uid,
382 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
383 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
384 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
385 '
386 ]
387 ],
388 'palettes' => [
389 '5' => [
390 'showitem' => 'author,author_email',
391 ],
392 'standard' => [
393 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel',
394 ],
395 'shortcut' => [
396 'showitem' => 'shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
397 ],
398 'shortcutpage' => [
399 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
400 ],
401 'external' => [
402 'showitem' => 'urltype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.urltype_formlabel, url;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url_formlabel',
403 ],
404 'title' => [
405 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel, --linebreak--, nav_title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_title_formlabel, --linebreak--, subtitle;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.subtitle_formlabel',
406 ],
407 'titleonly' => [
408 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
409 ],
410 'hiddenonly' => [
411 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
412 ],
413 'access' => [
414 'showitem' => 'starttime;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.starttime_formlabel, endtime;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.endtime_formlabel',
415 ],
416 'abstract' => [
417 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
418 ],
419 'metatags' => [
420 'showitem' => 'keywords;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel',
421 ],
422 'editorial' => [
423 'showitem' => 'author;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_formlabel, author_email;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_email_formlabel',
424 ],
425 'language' => [
426 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
427 ],
428 'media' => [
429 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
430 ],
431 ],
432 ];