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