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