[BUGFIX] Invalid TCA type in sys_file_metadata
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_metadata.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_metadata',
5 'label' => 'file',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'type' => 'file:type',
10 'hideTable' => TRUE,
11 'rootLevel' => TRUE,
12 'languageField' => 'sys_language_uid',
13 'transOrigPointerField' => 'l10n_parent',
14 'transOrigDiffSourceField' => 'l10n_diffsource',
15 'versioningWS' => TRUE,
16 'origUid' => 't3_origuid',
17 'default_sortby' => 'ORDER BY crdate DESC',
18 'typeicon_classes' => array(
19 'default' => 'mimetypes-other-other'
20 ),
21 'security' => array(
22 'ignoreWebMountRestriction' => TRUE,
23 'ignoreRootLevelRestriction' => TRUE,
24 ),
25 'searchFields' => 'file,title,description,alternative'
26 ),
27 'interface' => array(
28 'showRecordFieldList' => 'file, title, description, alternative'
29 ),
30 'columns' => array(
31 'sys_language_uid' => array(
32 'exclude' => 0,
33 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
34 'config' => array(
35 'type' => 'select',
36 'foreign_table' => 'sys_language',
37 'foreign_table_where' => 'ORDER BY sys_language.title',
38 'items' => array(
39 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
40 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
41 ),
42 'default' => 0
43 )
44 ),
45 'l10n_parent' => array(
46 'displayCond' => 'FIELD:sys_language_uid:>:0',
47 'exclude' => 0,
48 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
49 'config' => array(
50 'type' => 'select',
51 'items' => array(
52 array('', 0)
53 ),
54 'foreign_table' => 'sys_file_metadata',
55 'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)',
56 'default' => 0
57 )
58 ),
59 'l10n_diffsource' => array(
60 'exclude' => 0,
61 'config' => array(
62 'type' => 'passthrough',
63 'default' => ''
64 )
65 ),
66 't3ver_label' => array(
67 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
68 'config' => array(
69 'type' => 'input',
70 'size' => '30',
71 'max' => '30'
72 )
73 ),
74 'fileinfo' => array(
75 'config' => array(
76 'type' => 'user',
77 'userFunc' => 'typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileMetadataInfo'
78 )
79 ),
80 'file' => array(
81 'displayCond' => 'FIELD:sys_language_uid:=:0',
82 'exclude' => 0,
83 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
84 'config' => array(
85 'readOnly' => 1,
86 'type' => 'select',
87 'foreign_table' => 'sys_file',
88 'minitems' => 1,
89 'maxitems' => 1,
90 'size' => 1,
91 'default' => 0,
92 )
93 ),
94 'title' => array(
95 'exclude' => 1,
96 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.title',
97 'l10n_mode' => 'prefixLangTitle',
98 'config' => array(
99 'type' => 'input',
100 'size' => '30',
101 'placeholder' => '__row|file|name'
102 )
103 ),
104 'description' => array(
105 'exclude' => 0,
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.description',
107 'l10n_mode' => 'prefixLangTitle',
108 'config' => array(
109 'type' => 'text',
110 'cols' => '40',
111 'rows' => '3'
112 )
113 ),
114 'alternative' => array(
115 'exclude' => 0,
116 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.alternative',
117 'config' => array(
118 'type' => 'text',
119 'cols' => '40',
120 'rows' => '3'
121 )
122 ),
123 'width' => array(
124 'exclude' => 0,
125 'l10n_mode' => 'exclude'
126 ),
127 'height' => array(
128 'exclude' => 0,
129 'l10n_mode' => 'exclude'
130 )
131 ),
132 'types' => array(
133 '1' => array('showitem' => 'fileinfo, title, description, alternative')
134 ),
135 'palettes' => array()
136 );