[!!!][TASK] Remove t3ver_label database field
[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 ],
252 'types' => [
253 // normal
254 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => [
255 'showitem' => '
256 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
257 --palette--;;standard,
258 --palette--;;title,
259 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
260 --palette--;;abstract,
261 --palette--;;metatags,
262 --palette--;;editorial,
263 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
264 --palette--;;media,
265 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
266 sys_language_uid,
267 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
268 --palette--;;hiddenonly,
269 --palette--;;access,
270 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
271 '
272 ],
273 // external URL
274 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => [
275 'showitem' => '
276 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
277 doktype,
278 --palette--;;title,
279 --palette--;;external,
280 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
281 --palette--;;abstract,
282 --palette--;;editorial,
283 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
284 --palette--;;media,
285 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
286 sys_language_uid,
287 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
288 --palette--;;hiddenonly,
289 --palette--;;access,
290 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
291 '
292 ],
293 // shortcut
294 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => [
295 'showitem' => '
296 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
297 doktype,
298 --palette--;;title,
299 --palette--;;shortcut,
300 --palette--;;shortcutpage,
301 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
302 --palette--;;abstract,
303 --palette--;;editorial,
304 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
305 --palette--;;media,
306 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
307 sys_language_uid,
308 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
309 --palette--;;hiddenonly,
310 --palette--;;access,
311 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
312 '
313 ],
314 // mount page
315 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => [
316 'showitem' => '
317 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
318 --palette--;;standard,
319 --palette--;;title,
320 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
321 --palette--;;abstract,
322 --palette--;;editorial,
323 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
324 --palette--;;media,
325 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
326 sys_language_uid,
327 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
328 --palette--;;hiddenonly,
329 --palette--;;access,
330 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
331 '
332 ],
333 // spacer
334 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => [
335 'showitem' => '
336 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
337 --palette--;;standard,
338 --palette--;;titleonly,
339 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
340 sys_language_uid,
341 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
342 --palette--;;hiddenonly,
343 --palette--;;access,
344 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
345 '
346 ],
347 // sysfolder
348 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => [
349 'showitem' => '
350 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
351 --palette--;;standard,
352 --palette--;;titleonly,
353 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
354 --palette--;;media,
355 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
356 sys_language_uid,
357 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
358 --palette--;;hiddenonly,
359 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
360 '
361 ],
362 // trash
363 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => [
364 'showitem' => '
365 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
366 --palette--;;standard,
367 --palette--;;titleonly,
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--;;hiddenonly,
372 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
373 '
374 ]
375 ],
376 'palettes' => [
377 '5' => [
378 'showitem' => 'author,author_email',
379 ],
380 'standard' => [
381 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard',
382 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel',
383 ],
384 'shortcut' => [
385 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut',
386 'showitem' => 'shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
387 ],
388 'shortcutpage' => [
389 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage',
390 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
391 ],
392 'external' => [
393 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external',
394 'showitem' => 'url;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url_formlabel',
395 ],
396 'title' => [
397 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title',
398 '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',
399 ],
400 'titleonly' => [
401 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title',
402 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
403 ],
404 'hiddenonly' => [
405 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility',
406 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
407 ],
408 'access' => [
409 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access',
410 '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',
411 ],
412 'abstract' => [
413 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract',
414 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
415 ],
416 'metatags' => [
417 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.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 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial',
422 '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',
423 ],
424 'language' => [
425 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
426 ],
427 'media' => [
428 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media',
429 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
430 ],
431 ],
432 ];