[!!!][TASK] Remove t3ver_label database field
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_collection.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection',
5 'label' => 'title',
6 'descriptionColumn' => 'description',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'versioningWS' => true,
11 'origUid' => 't3_origuid',
12 'languageField' => 'sys_language_uid',
13 'transOrigPointerField' => 'l10n_parent',
14 'transOrigDiffSourceField' => 'l10n_diffsource',
15 'default_sortby' => 'crdate',
16 'delete' => 'deleted',
17 'type' => 'type',
18 'typeicon_column' => 'type',
19 'typeicon_classes' => [
20 'default' => 'apps-filetree-folder-media',
21 'static' => 'apps-clipboard-images',
22 'folder' => 'apps-filetree-folder-media'
23 ],
24 'enablecolumns' => [
25 'disabled' => 'hidden',
26 'starttime' => 'starttime',
27 'endtime' => 'endtime'
28 ],
29 'searchFields' => 'files,title'
30 ],
31 'interface' => [
32 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title,description'
33 ],
34 'columns' => [
35 'sys_language_uid' => [
36 'exclude' => true,
37 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
38 'config' => [
39 'type' => 'select',
40 'renderType' => 'selectSingle',
41 'foreign_table' => 'sys_language',
42 'foreign_table_where' => 'ORDER BY sys_language.title',
43 'items' => [
44 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
45 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
46 ],
47 'default' => 0,
48 'fieldWizard' => [
49 'selectIcons' => [
50 'disabled' => false,
51 ],
52 ],
53 ]
54 ],
55 'l10n_parent' => [
56 'displayCond' => 'FIELD:sys_language_uid:>:0',
57 'exclude' => true,
58 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
59 'config' => [
60 'type' => 'select',
61 'renderType' => 'selectSingle',
62 'items' => [
63 ['', 0]
64 ],
65 'foreign_table' => 'sys_file_collection',
66 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)',
67 'default' => 0,
68 ]
69 ],
70 'l10n_diffsource' => [
71 'config' => [
72 'type' => 'passthrough',
73 'default' => ''
74 ]
75 ],
76 'hidden' => [
77 'exclude' => true,
78 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
79 'config' => [
80 'type' => 'check',
81 'default' => 0
82 ]
83 ],
84 'starttime' => [
85 'exclude' => true,
86 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
87 'config' => [
88 'type' => 'input',
89 'renderType' => 'inputDateTime',
90 'eval' => 'date,int',
91 'default' => 0,
92 ]
93 ],
94 'endtime' => [
95 'exclude' => true,
96 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
97 'config' => [
98 'type' => 'input',
99 'renderType' => 'inputDateTime',
100 'eval' => 'date,int',
101 'default' => 0,
102 'range' => [
103 'upper' => mktime(0, 0, 0, 1, 1, 2038),
104 ]
105 ]
106 ],
107 'type' => [
108 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type',
109 'config' => [
110 'type' => 'select',
111 'renderType' => 'selectSingle',
112 'items' => [
113 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.0', 'static'],
114 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.1', 'folder'],
115 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.2', 'category']
116 ]
117 ]
118 ],
119 'files' => [
120 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.files',
121 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')
122 ],
123 'title' => [
124 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.title',
125 'config' => [
126 'type' => 'input',
127 'size' => 30,
128 'eval' => 'required'
129 ]
130 ],
131 'storage' => [
132 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.storage',
133 'onChange' => 'reload',
134 'config' => [
135 'type' => 'select',
136 'renderType' => 'selectSingle',
137 'items' => [
138 ['', 0]
139 ],
140 'foreign_table' => 'sys_file_storage',
141 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
142 'size' => 1,
143 'minitems' => 0,
144 'maxitems' => 1,
145 'default' => 0,
146 ]
147 ],
148 'folder' => [
149 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.folder',
150 'config' => [
151 'type' => 'select',
152 'renderType' => 'selectSingle',
153 'items' => [],
154 'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
155 'default' => '',
156 ]
157 ],
158 'recursive' => [
159 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.recursive',
160 'config' => [
161 'type' => 'check',
162 'renderType' => 'checkboxToggle',
163 'default' => 0,
164 'items' => [
165 [
166 0 => '',
167 1 => '',
168 ]
169 ],
170 ]
171 ],
172 'category' => [
173 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.category',
174 'config' => [
175 'minitems' => 0,
176 'maxitems' => 1,
177 'type' => 'select',
178 'renderType' => 'selectTree',
179 'foreign_table' => 'sys_category',
180 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
181 'treeConfig' => [
182 'parentField' => 'parent',
183 'appearance' => [
184 'expandAll' => true,
185 'showHeader' => true,
186 ]
187 ],
188 'default' => 0,
189 ]
190 ],
191 'description' => [
192 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
193 'config' => [
194 'type' => 'text',
195 'rows' => 5,
196 'cols' => 30,
197 'max' => 2000,
198 ]
199 ]
200 ],
201 'types' => [
202 '0' => [
203 'showitem' => '
204 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
205 type,title,files,
206 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
207 --palette--;;language,
208 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
209 --palette--;;timeRestriction,
210 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
211 description,
212 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
213 '
214 ],
215 'static' => [
216 'showitem' => '
217 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
218 type,title,files,
219 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
220 --palette--;;language,
221 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
222 --palette--;;timeRestriction,
223 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
224 description,
225 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
226 '
227 ],
228 'folder' => [
229 'showitem' => '
230 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
231 type,title,storage, folder, recursive,
232 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
233 --palette--;;language,
234 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
235 --palette--;;timeRestriction,
236 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
237 description,
238 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
239 '
240 ],
241 'category' => [
242 'showitem' => '
243 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
244 type,title,category,
245 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
246 --palette--;;language,
247 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
248 --palette--;;timeRestriction,
249 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
250 description,
251 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
252 ',
253 ],
254 ],
255 'palettes' => [
256 'timeRestriction' => ['showitem' => 'starttime, endtime'],
257 'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
258 ],
259 ];