[!!!][TASK] TCA: Streamline field position in tabs
[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 'size' => 13,
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 'size' => 13,
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 'show_thumbs' => true,
222 'wizards' => [
223 'suggest' => [
224 'type' => 'suggest'
225 ]
226 ],
227 'default' => 0
228 ]
229 ],
230 'shortcut_mode' => [
231 'exclude' => true,
232 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode',
233 'config' => [
234 'type' => 'select',
235 'renderType' => 'selectSingle',
236 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
237 'default' => 0
238 ]
239 ],
240 'sys_language_uid' => [
241 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
242 'config' => [
243 'type' => 'select',
244 'renderType' => 'selectSingle',
245 'foreign_table' => 'sys_language',
246 'foreign_table_where' => 'ORDER BY sys_language.title',
247 'items' => [], // no default language here, as the pages table is always the default language
248 'default' => 0,
249 'showIconTable' => true,
250 ]
251 ],
252 'l18n_diffsource' => [
253 'config' => [
254 'type' => 'passthrough',
255 'default' => ''
256 ]
257 ],
258 't3ver_label' => [
259 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
260 'config' => [
261 'type' => 'input',
262 'size' => 30,
263 'max' => 255
264 ]
265 ]
266 ],
267 'types' => [
268 // normal
269 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => [
270 'showitem' => '
271 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
272 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
273 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
274 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
275 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
276 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
277 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
278 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
279 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
280 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
281 sys_language_uid,
282 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
283 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
284 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
285 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
286 '
287 ],
288 // external URL
289 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => [
290 'showitem' => '
291 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
292 doktype,
293 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
294 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
295 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
296 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
297 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
298 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
299 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
300 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
301 sys_language_uid,
302 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
303 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
304 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
305 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
306 '
307 ],
308 // shortcut
309 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => [
310 'showitem' => '
311 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
312 doktype,
313 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
314 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
315 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
316 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
317 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
318 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
319 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
320 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
321 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
322 sys_language_uid,
323 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
324 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
325 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
326 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
327 '
328 ],
329 // mount page
330 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => [
331 'showitem' => '
332 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
333 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
334 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
335 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
336 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
337 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
338 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
339 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
340 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
341 sys_language_uid,
342 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
343 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
344 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
345 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
346 '
347 ],
348 // spacer
349 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => [
350 'showitem' => '
351 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
352 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
353 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
354 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
355 sys_language_uid,
356 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
357 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
358 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
359 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
360 '
361 ],
362 // sysfolder
363 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => [
364 'showitem' => '
365 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
366 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
367 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
368 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
369 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
370 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
371 sys_language_uid,
372 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
373 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
374 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
375 '
376 ],
377 // trash
378 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => [
379 'showitem' => '
380 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
381 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
382 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
383 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
384 sys_language_uid,
385 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
386 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
387 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
388 '
389 ]
390 ],
391 'palettes' => [
392 '5' => [
393 'showitem' => 'author,author_email',
394 ],
395 'standard' => [
396 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel',
397 ],
398 'shortcut' => [
399 'showitem' => 'shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
400 ],
401 'shortcutpage' => [
402 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
403 ],
404 'external' => [
405 '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',
406 ],
407 'title' => [
408 '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',
409 ],
410 'titleonly' => [
411 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
412 ],
413 'hiddenonly' => [
414 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
415 ],
416 'access' => [
417 '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',
418 ],
419 'abstract' => [
420 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
421 ],
422 'metatags' => [
423 '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',
424 ],
425 'editorial' => [
426 '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',
427 ],
428 'language' => [
429 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
430 ],
431 'media' => [
432 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
433 ],
434 ],
435 ];