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