[TASK] Remove leftover page/branch versioning code
[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/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 'transOrigPointerTable' => 'pages',
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 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url'
29 ],
30 'interface' => [
31 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
32 ],
33 'columns' => [
34 'doktype' => $GLOBALS['TCA']['pages']['columns']['doktype'],
35 'hidden' => [
36 'exclude' => true,
37 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden',
38 'config' => [
39 'type' => 'check',
40 'default' => 0,
41 'items' => [
42 '1' => [
43 '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_checkbox_1_formlabel'
44 ]
45 ]
46 ]
47 ],
48 'starttime' => [
49 'exclude' => true,
50 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
51 'config' => [
52 'type' => 'input',
53 'size' => 13,
54 'eval' => 'datetime',
55 'default' => 0
56 ]
57 ],
58 'endtime' => [
59 'exclude' => true,
60 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
61 'config' => [
62 'type' => 'input',
63 'size' => 13,
64 'eval' => 'datetime',
65 'default' => 0,
66 'range' => [
67 'upper' => mktime(0, 0, 0, 12, 31, 2020)
68 ]
69 ]
70 ],
71 'title' => [
72 'l10n_mode' => 'prefixLangTitle',
73 'label' => $GLOBALS['TCA']['pages']['columns']['title']['label'],
74 'l10n_cat' => 'text',
75 'config' => [
76 'type' => 'input',
77 'size' => 50,
78 'max' => 255,
79 'eval' => 'trim,required'
80 ]
81 ],
82 'subtitle' => [
83 'exclude' => true,
84 'l10n_cat' => 'text',
85 'label' => $GLOBALS['TCA']['pages']['columns']['subtitle']['label'],
86 'config' => [
87 'type' => 'input',
88 'size' => 50,
89 'max' => 255,
90 'eval' => 'trim'
91 ]
92 ],
93 'nav_title' => [
94 'exclude' => true,
95 'l10n_cat' => 'text',
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' => 80,
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('media', [
156 // Use the imageoverlayPalette instead of the basicoverlayPalette
157 'foreign_types' => [
158 '0' => [
159 'showitem' => '
160 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
161 --palette--;;filePalette'
162 ],
163 \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
164 'showitem' => '
165 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
166 --palette--;;filePalette'
167 ],
168 \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
169 'showitem' => '
170 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
171 --palette--;;filePalette'
172 ],
173 \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
174 'showitem' => '
175 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,
176 --palette--;;filePalette'
177 ],
178 \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
179 'showitem' => '
180 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
181 --palette--;;filePalette'
182 ],
183 \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
184 'showitem' => '
185 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
186 --palette--;;filePalette'
187 ]
188 ]
189 ]
190 )
191 ],
192 'url' => [
193 'exclude' => true,
194 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url',
195 'config' => [
196 'type' => 'input',
197 'size' => 23,
198 'max' => 255,
199 'eval' => 'trim',
200 'softref' => 'url'
201 ]
202 ],
203 'urltype' => [
204 'exclude' => true,
205 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type',
206 'config' => [
207 'type' => 'select',
208 'renderType' => 'selectSingle',
209 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'],
210 'default' => '1'
211 ]
212 ],
213 'shortcut' => [
214 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.shortcut_page',
215 'config' => [
216 'type' => 'group',
217 'internal_type' => 'db',
218 'allowed' => 'pages',
219 'size' => 1,
220 'maxitems' => 1,
221 'minitems' => 0,
222 'show_thumbs' => true,
223 'wizards' => [
224 'suggest' => [
225 'type' => 'suggest'
226 ]
227 ],
228 'default' => 0
229 ]
230 ],
231 'shortcut_mode' => [
232 'exclude' => true,
233 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode',
234 'config' => [
235 'type' => 'select',
236 'renderType' => 'selectSingle',
237 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
238 'default' => 0
239 ]
240 ],
241 'sys_language_uid' => [
242 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
243 'config' => [
244 'type' => 'select',
245 'renderType' => 'selectSingle',
246 'foreign_table' => 'sys_language',
247 'foreign_table_where' => 'ORDER BY sys_language.title',
248 'items' => [], // no default language here, as the pages table is always the default language
249 'default' => 0,
250 'showIconTable' => true,
251 ]
252 ],
253 'l18n_diffsource' => [
254 'config' => [
255 'type' => 'passthrough',
256 'default' => ''
257 ]
258 ],
259 't3ver_label' => [
260 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
261 'config' => [
262 'type' => 'input',
263 'size' => 30,
264 'max' => 255
265 ]
266 ]
267 ],
268 'types' => [
269 // normal
270 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => [
271 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
272 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
273 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
274 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
275 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
276 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
277 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
278 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
279 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
280 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
281 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
282 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
283 '
284 ],
285 // external URL
286 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => [
287 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
288 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
289 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
290 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
291 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
292 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
293 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
294 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
295 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
296 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
297 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
298 '
299 ],
300 // shortcut
301 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => [
302 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
303 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
304 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
305 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
306 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
307 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
308 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
309 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
310 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
311 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
312 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
313 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
314 '
315 ],
316 // mount page
317 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => [
318 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
319 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
320 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
321 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
322 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
323 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
324 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
325 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
326 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
327 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
328 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
329 '
330 ],
331 // spacer
332 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => [
333 'showitem' => '--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;titleonly,
335 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
336 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
337 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
338 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
339 '
340 ],
341 // sysfolder
342 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => [
343 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
344 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
345 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
346 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
347 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
348 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
349 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
350 '
351 ],
352 // trash
353 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => [
354 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
355 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
356 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
357 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
358 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
359 '
360 ]
361 ],
362 'palettes' => [
363 '5' => [
364 'showitem' => 'author,author_email',
365 ],
366 'standard' => [
367 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid',
368 ],
369 'shortcut' => [
370 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid, shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
371 ],
372 'shortcutpage' => [
373 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
374 ],
375 'external' => [
376 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid, 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',
377 ],
378 'title' => [
379 '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',
380 ],
381 'titleonly' => [
382 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
383 ],
384 'hiddenonly' => [
385 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
386 ],
387 'access' => [
388 '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',
389 ],
390 'abstract' => [
391 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
392 ],
393 'metatags' => [
394 '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',
395 ],
396 'editorial' => [
397 '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',
398 ],
399 'language' => [
400 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
401 ],
402 'media' => [
403 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
404 ],
405 ],
406 ];