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