[!!!][TASK] Remove TCA l10n_mode=mergeIfNotBlank
[Packages/TYPO3.CMS.git] / typo3 / sysext / filemetadata / Configuration / TCA / Overrides / sys_file_metadata.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 $tca = [
5 'ctrl' => [
6 'type' => 'file:type',
7 ],
8 'types' => [
9 TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => [
10 'showitem' => '
11 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
12 fileinfo, title, description, ranking, keywords,
13 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;25,
14 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
15 creator, creator_tool, publisher, source, copyright,
16 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
17 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
18 --palette--;;language,
19 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
20 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
21 fe_groups,
22 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
23 categories,
24 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
25 ',
26 ],
27 TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
28 'showitem' => '
29 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
30 fileinfo, title, description, ranking, keywords,
31 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;25,
32 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
33 creator, creator_tool, publisher, source, copyright, language,
34 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
35 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
36 --palette--;;language,
37 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
38 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
39 fe_groups,
40 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
41 categories,
42 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
43 ',
44 ],
45 TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
46 'showitem' => '
47 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
48 fileinfo, title, description, ranking, keywords,
49 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;20,
50 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
51 creator, creator_tool, publisher, source, copyright, language,
52 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
53 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.gps;30,
54 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60,
55 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.camera,
56 color_space,
57 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50,
58 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
59 --palette--;;language,
60 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
61 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
62 fe_groups,
63 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
64 categories,
65 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
66 ',
67 ],
68 TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
69 'showitem' => '
70 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
71 fileinfo, title, description, ranking, keywords,
72 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;25,
73 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
74 creator, creator_tool, publisher, source, copyright, language,
75 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60,
76 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.audio,
77 duration,
78 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
79 --palette--;;language,
80 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
81 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
82 fe_groups,
83 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
84 categories,
85 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
86 ',
87 ],
88 TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
89 'showitem' => '
90 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
91 fileinfo, title, description, ranking, keywords,
92 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;25,
93 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
94 creator, creator_tool, publisher, source, copyright, language,
95 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60,
96 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.video,
97 duration,
98 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
99 --palette--;;language,
100 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
101 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
102 fe_groups,
103 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
104 categories,
105 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
106 ',
107 ],
108 TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
109 'showitem' => '
110 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
111 fileinfo, title, description, ranking, keywords,
112 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.accessibility;25,
113 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
114 creator, creator_tool, publisher, source, copyright, language,
115 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40,
116 pages,
117 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50,
118 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60,
119 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
120 --palette--;;language,
121 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
122 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10,
123 fe_groups,
124 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
125 categories,
126 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
127 ',
128 ],
129 ],
130 'palettes' => [
131 '10' => [
132 'showitem' => 'visible, status',
133 ],
134 '20' => [
135 'showitem' => 'alternative, --linebreak--, caption, --linebreak--, download_name',
136 ],
137 '25' => [
138 'showitem' => 'caption, --linebreak--, download_name',
139 ],
140 '30' => [
141 'showitem' => 'latitude, longitude',
142 ],
143 '40' => [
144 'showitem' => 'location_country, location_region, location_city',
145 ],
146 '50' => [
147 'showitem' => 'width, height, unit',
148 ],
149 '60' => [
150 'showitem' => 'content_creation_date, content_modification_date',
151 ],
152 ],
153 'columns' => [
154 'visible' => [
155 'exclude' => true,
156 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.visible',
157 'config' => [
158 'type' => 'check',
159 'default' => '1'
160 ],
161 ],
162 'status' => [
163 'exclude' => true,
164 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status',
165 'config' => [
166 'type' => 'select',
167 'renderType' => 'selectSingle',
168 'items' => [
169 [
170 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.1',
171 1,
172 'filemetadata-status-1'
173 ],
174 [
175 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.2',
176 2,
177 'filemetadata-status-2'
178 ],
179 [
180 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.3',
181 3,
182 'filemetadata-status-3'
183 ],
184 ],
185 'showIconTable' => true,
186 ],
187 ],
188 'keywords' => [
189 'exclude' => true,
190 'l10n_mode' => 'prefixLangTitle',
191 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.keywords',
192 'config' => [
193 'type' => 'text',
194 'cols' => 40,
195 'rows' => 3,
196 'placeholder' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:placeholder.keywords'
197 ],
198 ],
199 'caption' => [
200 'exclude' => true,
201 'l10n_mode' => 'prefixLangTitle',
202 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.caption',
203 'config' => [
204 'type' => 'text',
205 'cols' => 40,
206 'rows' => 3,
207 ],
208 ],
209 'creator_tool' => [
210 'exclude' => true,
211 'l10n_mode' => 'exclude',
212 'l10n_display' => 'defaultAsReadonly',
213 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator_tool',
214 'config' => [
215 'type' => 'input',
216 'size' => 20,
217 'eval' => 'trim'
218 ],
219 ],
220 'download_name' => [
221 'exclude' => true,
222 'l10n_mode' => 'exclude',
223 'l10n_display' => 'defaultAsReadonly',
224 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.download_name',
225 'config' => [
226 'type' => 'input',
227 'size' => 30,
228 'eval' => 'trim'
229 ],
230 ],
231 'creator' => [
232 'exclude' => true,
233 'l10n_mode' => 'exclude',
234 'l10n_display' => 'defaultAsReadonly',
235 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator',
236 'config' => [
237 'type' => 'input',
238 'size' => 30,
239 'eval' => 'trim'
240 ],
241 ],
242 'publisher' => [
243 'exclude' => true,
244 'l10n_mode' => 'exclude',
245 'l10n_display' => 'defaultAsReadonly',
246 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.publisher',
247 'config' => [
248 'type' => 'input',
249 'size' => 20,
250 'eval' => 'trim'
251 ],
252 ],
253 'source' => [
254 'exclude' => true,
255 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.source',
256 'config' => [
257 'type' => 'input',
258 'size' => 20,
259 'eval' => 'trim'
260 ],
261 ],
262 'copyright' => [
263 'exclude' => true,
264 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.copyright',
265 'config' => [
266 'type' => 'text',
267 'cols' => 40,
268 'rows' => 3,
269 ],
270 ],
271 'location_country' => [
272 'exclude' => true,
273 'l10n_display' => '',
274 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_country',
275 'config' => [
276 'type' => 'input',
277 'size' => 20,
278 'eval' => 'trim'
279 ],
280 ],
281 'location_region' => [
282 'exclude' => true,
283 'l10n_display' => '',
284 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_region',
285 'config' => [
286 'type' => 'input',
287 'size' => 20,
288 'eval' => 'trim'
289 ],
290 ],
291 'location_city' => [
292 'exclude' => true,
293 'l10n_display' => '',
294 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_city',
295 'config' => [
296 'type' => 'input',
297 'size' => 20,
298 'eval' => 'trim'
299 ],
300 ],
301 'latitude' => [
302 'exclude' => true,
303 'l10n_mode' => 'exclude',
304 'l10n_display' => 'defaultAsReadonly',
305 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.latitude',
306 'config' => [
307 'type' => 'input',
308 'size' => 20,
309 'eval' => 'trim',
310 'max' => 30,
311 'default' => '0.00000000000000'
312 ],
313 ],
314 'longitude' => [
315 'exclude' => true,
316 'l10n_mode' => 'exclude',
317 'l10n_display' => 'defaultAsReadonly',
318 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.longitude',
319 'config' => [
320 'type' => 'input',
321 'size' => 20,
322 'eval' => 'trim',
323 'max' => 30,
324 'default' => '0.00000000000000'
325 ],
326 ],
327 'ranking' => [
328 'exclude' => true,
329 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.ranking',
330 'config' => [
331 'type' => 'select',
332 'renderType' => 'selectSingle',
333 'minitems' => 1,
334 'maxitems' => 1,
335 'items' => [
336 [0, 0],
337 [1, 1],
338 [2, 2],
339 [3, 3],
340 [4, 4],
341 [5, 5],
342 ],
343 ],
344 ],
345 'content_creation_date' => [
346 'exclude' => true,
347 'l10n_mode' => 'exclude',
348 'l10n_display' => 'defaultAsReadonly',
349 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_creation_date',
350 'config' => [
351 'type' => 'input',
352 'size' => 12,
353 'max' => 20,
354 'eval' => 'date',
355 'default' => time()
356 ],
357 ],
358 'content_modification_date' => [
359 'exclude' => true,
360 'l10n_mode' => 'exclude',
361 'l10n_display' => 'defaultAsReadonly',
362 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_modification_date',
363 'config' => [
364 'type' => 'input',
365 'size' => 12,
366 'max' => 20,
367 'eval' => 'date',
368 'default' => time()
369 ],
370 ],
371 'note' => [
372 'exclude' => true,
373 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.note',
374 'config' => [
375 'type' => 'text',
376 'cols' => 40,
377 'rows' => 15,
378 'eval' => 'trim'
379 ],
380 ],
381 /*
382 * METRICS ###########################################
383 */
384 'unit' => [
385 'exclude' => true,
386 'l10n_mode' => 'exclude',
387 'l10n_display' => 'defaultAsReadonly',
388 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit',
389 'config' => [
390 'type' => 'select',
391 'renderType' => 'selectSingle',
392 'items' => [
393 ['', ''],
394 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.px', 'px'],
395 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.cm', 'cm'],
396 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.in', 'in'],
397 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.mm', 'mm'],
398 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.m', 'm'],
399 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.p', 'p'],
400 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit.pt', 'pt']
401 ],
402 'default' => '',
403 'readOnly' => true,
404 ],
405 ],
406 'duration' => [
407 'exclude' => true,
408 'l10n_mode' => 'exclude',
409 'l10n_display' => 'defaultAsReadonly',
410 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.duration',
411 'config' => [
412 'type' => 'input',
413 'size' => 10,
414 'max' => 20,
415 'eval' => 'int',
416 'default' => 0
417 ]
418 ],
419 'color_space' => [
420 'exclude' => true,
421 'l10n_mode' => 'exclude',
422 'l10n_display' => 'defaultAsReadonly',
423 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space',
424 'config' => [
425 'type' => 'select',
426 'renderType' => 'selectSingle',
427 'items' => [
428 ['', ''],
429 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.RGB', 'RGB'],
430 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.sRGB', 'sRGB'],
431 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.CMYK', 'CMYK'],
432 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.CMY', 'CMY'],
433 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.YUV', 'YUV'],
434 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.grey', 'grey'],
435 ['LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.indx', 'indx'],
436 ],
437 'default' => '',
438 'readOnly' => true,
439 ]
440 ],
441 'width' => [
442 'exclude' => true,
443 'l10n_mode' => 'exclude',
444 'l10n_display' => 'defaultAsReadonly',
445 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.width',
446 'config' => [
447 'type' => 'input',
448 'size' => 10,
449 'max' => 20,
450 'eval' => 'int',
451 'default' => 0,
452 'readOnly' => true,
453 ],
454 ],
455 'height' => [
456 'exclude' => true,
457 'l10n_mode' => 'exclude',
458 'l10n_display' => 'defaultAsReadonly',
459 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.height',
460 'config' => [
461 'type' => 'input',
462 'size' => 10,
463 'max' => 20,
464 'eval' => 'int',
465 'default' => 0,
466 'readOnly' => true,
467 ],
468 ],
469 'pages' => [
470 'exclude' => true,
471 'l10n_mode' => 'exclude',
472 'l10n_display' => 'defaultAsReadonly',
473 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.pages',
474 'config' => [
475 'type' => 'input',
476 'size' => 30,
477 'eval' => 'trim',
478 'readOnly' => true
479 ],
480 ],
481 'language' => [
482 'exclude' => true,
483 'l10n_mode' => 'exclude',
484 'l10n_display' => 'defaultAsReadonly',
485 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.language',
486 'config' => [
487 'type' => 'input',
488 'size' => 30,
489 'eval' => 'trim'
490 ]
491 ],
492 'fe_groups' => [
493 'exclude' => true,
494 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
495 'config' => [
496 'type' => 'select',
497 'renderType' => 'selectMultipleSideBySide',
498 'size' => 5,
499 'maxitems' => 20,
500 'items' => [
501 [
502 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
503 -1
504 ],
505 [
506 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
507 -2
508 ],
509 [
510 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
511 '--div--'
512 ]
513 ],
514 'exclusiveKeys' => '-1,-2',
515 'foreign_table' => 'fe_groups',
516 'foreign_table_where' => 'ORDER BY fe_groups.title'
517 ]
518 ],
519 ],
520 ];
521
522 $GLOBALS['TCA']['sys_file_metadata'] = array_replace_recursive($GLOBALS['TCA']['sys_file_metadata'], $tca);