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