[TASK] Use correct language sorting in TCA field language of pages_language_overlay
[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 '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 'foreign_types' => [
154 '0' => [
155 'showitem' => '
156 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
157 --palette--;;filePalette'
158 ],
159 \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
160 'showitem' => '
161 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
162 --palette--;;filePalette'
163 ],
164 \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
165 'showitem' => '
166 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
167 --palette--;;filePalette'
168 ],
169 \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
170 'showitem' => '
171 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,
172 --palette--;;filePalette'
173 ],
174 \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
175 'showitem' => '
176 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
177 --palette--;;filePalette'
178 ],
179 \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
180 'showitem' => '
181 --palette--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
182 --palette--;;filePalette'
183 ]
184 ]
185 ]
186 )
187 ],
188 'url' => [
189 'exclude' => true,
190 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url',
191 'config' => [
192 'type' => 'input',
193 'size' => 23,
194 'max' => 255,
195 'eval' => 'trim',
196 'softref' => 'url'
197 ]
198 ],
199 'urltype' => [
200 'exclude' => true,
201 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.type',
202 'config' => [
203 'type' => 'select',
204 'renderType' => 'selectSingle',
205 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'],
206 'default' => '1'
207 ]
208 ],
209 'shortcut' => [
210 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.shortcut_page',
211 'config' => [
212 'type' => 'group',
213 'internal_type' => 'db',
214 'allowed' => 'pages',
215 'size' => 1,
216 'maxitems' => 1,
217 'minitems' => 0,
218 'default' => 0
219 ]
220 ],
221 'shortcut_mode' => [
222 'exclude' => true,
223 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode',
224 'config' => [
225 'type' => 'select',
226 'renderType' => 'selectSingle',
227 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
228 'default' => 0
229 ]
230 ],
231 'sys_language_uid' => [
232 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
233 'config' => [
234 'type' => 'select',
235 'renderType' => 'selectSingle',
236 'foreign_table' => 'sys_language',
237 'foreign_table_where' => 'ORDER BY sys_language.sorting',
238 'items' => [], // no default language here, as the pages table is always the default language
239 'default' => 0,
240 'fieldWizard' => [
241 'selectIcons' => [
242 'disabled' => false,
243 ],
244 ],
245 ]
246 ],
247 'l18n_diffsource' => [
248 'config' => [
249 'type' => 'passthrough',
250 'default' => ''
251 ]
252 ],
253 't3ver_label' => [
254 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
255 'config' => [
256 'type' => 'input',
257 'size' => 30,
258 'max' => 255
259 ]
260 ]
261 ],
262 'types' => [
263 // normal
264 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => [
265 'showitem' => '
266 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
267 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
268 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
269 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
270 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
271 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
272 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
273 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
274 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
275 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
276 sys_language_uid,
277 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
278 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
279 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
280 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
281 '
282 ],
283 // external URL
284 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => [
285 'showitem' => '
286 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
287 doktype,
288 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
289 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
290 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
291 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
292 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
293 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
294 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
295 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
296 sys_language_uid,
297 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
298 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
299 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
300 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
301 '
302 ],
303 // shortcut
304 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => [
305 'showitem' => '
306 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
307 doktype,
308 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
309 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
310 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
311 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
312 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
313 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
314 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
315 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
316 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
317 sys_language_uid,
318 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
319 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
320 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
321 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
322 '
323 ],
324 // mount page
325 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => [
326 'showitem' => '
327 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
328 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
329 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
330 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
331 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
332 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
333 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
334 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
335 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
336 sys_language_uid,
337 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
338 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
339 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
340 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
341 '
342 ],
343 // spacer
344 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => [
345 'showitem' => '
346 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
347 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
348 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
349 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
350 sys_language_uid,
351 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
352 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
353 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
354 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
355 '
356 ],
357 // sysfolder
358 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => [
359 'showitem' => '
360 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
361 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
362 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
363 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
364 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
365 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
366 sys_language_uid,
367 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
368 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
369 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
370 '
371 ],
372 // trash
373 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => [
374 'showitem' => '
375 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
376 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
377 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
378 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
379 sys_language_uid,
380 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
381 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
382 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
383 '
384 ]
385 ],
386 'palettes' => [
387 '5' => [
388 'showitem' => 'author,author_email',
389 ],
390 'standard' => [
391 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel',
392 ],
393 'shortcut' => [
394 'showitem' => 'shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
395 ],
396 'shortcutpage' => [
397 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
398 ],
399 'external' => [
400 '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',
401 ],
402 'title' => [
403 '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',
404 ],
405 'titleonly' => [
406 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
407 ],
408 'hiddenonly' => [
409 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
410 ],
411 'access' => [
412 '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',
413 ],
414 'abstract' => [
415 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
416 ],
417 'metatags' => [
418 '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',
419 ],
420 'editorial' => [
421 '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',
422 ],
423 'language' => [
424 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
425 ],
426 'media' => [
427 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
428 ],
429 ],
430 ];