aa9e788e0ba7af261f149f65c55e37ceb6cba3e9
[Packages/TYPO3.CMS.git] / typo3 / sysext / filemetadata / Configuration / TCA / sys_file_metadata.php
1 <?php
2 if (!defined('TYPO3_MODE')) die ('Access denied.');
3
4 $tca = array(
5 'ctrl' => array(
6 'type' => 'type',
7 'typeicon_column' => 'type',
8 'typeicon_classes' => array(
9 '1' => 'mimetypes-text-text',
10 '2' => 'mimetypes-media-image',
11 '3' => 'mimetypes-media-audio',
12 '4' => 'mimetypes-media-video',
13 '5' => 'mimetypes-application',
14 'default' => 'mimetypes-other-other'
15 ),
16 ),
17 'types' => array(
18 TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => array('showitem' => '
19 fileinfo, title, description, alternative, keywords, caption, download_name,
20
21 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
22 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
23 fe_groups,
24
25 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
26 creator, --palette--;;20;;,
27 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;;'),
28
29 TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
30 fileinfo, title, description, alternative, keywords, caption, download_name,
31
32 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
33 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
34 fe_groups,
35
36 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
37 creator, --palette--;;20;;,
38 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;;,
39 language'),
40
41 TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
42 fileinfo, title, description, alternative, keywords, caption, download_name,
43
44 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
45 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
46 fe_groups,
47
48 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
49 creator, --palette--;;20;;,
50 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;; ,
51 --palette--;;30;;,
52 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.metrics;50;;'),
53
54 TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
55
56 fileinfo, title, description, alternative, keywords, caption, download_name,
57
58 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
59 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
60 fe_groups,
61
62 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
63 duration,
64 creator, --palette--;;20;;, language'),
65
66 TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
67 fileinfo, title, description, alternative, keywords, caption, download_name,
68
69 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
70 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
71 fe_groups,
72
73 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
74 duration,
75 creator, --palette--;;20;;, language'),
76
77 TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
78 fileinfo, title, description, alternative, keywords, caption, download_name,
79
80 --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
81 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.visibility;10;; ,
82 fe_groups,
83
84 --div--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:tabs.metadata,
85 creator, --palette--;;20;;,
86 --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.geo_location;40;; ,
87 language, --palette--;LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:palette.content_date;60;;, pages'),
88 ),
89 'palettes' => array(
90 '10' => array('showitem' => 'visible, status, ranking', 'canNotCollapse' => '1'),
91 '20' => array('showitem' => 'publisher, source', 'canNotCollapse' => '1'),
92 '30' => array('showitem' => 'latitude, longitude', 'canNotCollapse' => '1'),
93 '40' => array('showitem' => 'location_country, location_region, location_city', 'canNotCollapse' => '1'),
94 '50' => array('showitem' => 'width, height, unit, color_space', 'canNotCollapse' => '1'),
95 '60' => array('showitem' => 'content_creation_date, content_modification_date', 'canNotCollapse' => '1'),
96 ),
97 'columns' => array(
98 'visible' => array(
99 'exclude' => 1,
100 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.visible',
101 'config' => array(
102 'type' => 'check',
103 'default' => '1'
104 ),
105 ),
106 'status' => array(
107 'exclude' => 1,
108 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status',
109 'config' => array(
110 'type' => 'select',
111 'items' => array(
112 array(
113 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.1',
114 1,
115 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('filemetadata') . 'Resources/Public/Icons/status_1.png'
116 ),
117 array(
118 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.2',
119 2,
120 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('filemetadata') . 'Resources/Public/Icons/status_2.png'
121 ),
122 array(
123 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.status.3',
124 3,
125 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('filemetadata') . 'Resources/Public/Icons/status_3.png'
126 ),
127 ),
128 ),
129 ),
130 'keywords' => array(
131 'exclude' => 1,
132 'l10n_mode' => 'prefixLangTitle',
133 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.keywords',
134 'config' => array(
135 'placeholder' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:placeholder.keywords',
136 'type' => 'input',
137 'size' => 255,
138 'eval' => 'trim'
139 ),
140 ),
141 'caption' => array(
142 'exclude' => 1,
143 'l10n_mode' => 'prefixLangTitle',
144 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.caption',
145 'config' => array(
146 'type' => 'input',
147 'size' => 30,
148 'eval' => 'trim'
149 ),
150 ),
151 'creator_tool' => array(
152 'exclude' => 1,
153 'l10n_mode' => 'exclude',
154 'l10n_display' => 'defaultAsReadonly',
155 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator_tool',
156 'config' => array(
157 'type' => 'input',
158 'size' => 20,
159 'eval' => 'trim'
160 ),
161 ),
162 'download_name' => array(
163 'exclude' => 1,
164 'l10n_mode' => 'exclude',
165 'l10n_display' => 'defaultAsReadonly',
166 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.download_name',
167 'config' => array(
168 'type' => 'input',
169 'size' => 30,
170 'eval' => 'trim'
171 ),
172 ),
173 'creator' => array(
174 'exclude' => 1,
175 'l10n_mode' => 'exclude',
176 'l10n_display' => 'defaultAsReadonly',
177 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator',
178 'config' => array(
179 'type' => 'input',
180 'size' => 30,
181 'eval' => 'trim'
182 ),
183 ),
184 'publisher' => array(
185 'exclude' => 1,
186 'l10n_mode' => 'exclude',
187 'l10n_display' => 'defaultAsReadonly',
188 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.publisher',
189 'config' => array(
190 'type' => 'input',
191 'size' => 20,
192 'eval' => 'trim'
193 ),
194 ),
195 'source' => array(
196 'exclude' => 1,
197 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.source',
198 'config' => array(
199 'type' => 'input',
200 'size' => 20,
201 'eval' => 'trim'
202 ),
203 ),
204 'location_country' => array(
205 'exclude' => 1,
206 'l10n_mode' => 'mergeIfNotBlank',
207 'l10n_display' => '',
208 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_country',
209 'config' => array(
210 'type' => 'input',
211 'size' => 20,
212 'eval' => 'trim'
213 ),
214 ),
215 'location_region' => array(
216 'exclude' => 1,
217 'l10n_mode' => 'mergeIfNotBlank',
218 'l10n_display' => '',
219 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_region',
220 'config' => array(
221 'type' => 'input',
222 'size' => 20,
223 'eval' => 'trim'
224 ),
225 ),
226 'location_city' => array(
227 'exclude' => 1,
228 'l10n_mode' => 'mergeIfNotBlank',
229 'l10n_display' => '',
230 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_city',
231 'config' => array(
232 'type' => 'input',
233 'size' => 20,
234 'eval' => 'trim'
235 ),
236 ),
237 'latitude' => array(
238 'exclude' => 1,
239 'l10n_mode' => 'exclude',
240 'l10n_display' => 'defaultAsReadonly',
241 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.latitude',
242 'config' => array(
243 'type' => 'input',
244 'size' => '20',
245 'eval' => 'trim',
246 'max' => '30',
247 'default' => '0.00000000000000'
248 ),
249 ),
250 'longitude' => array(
251 'exclude' => 1,
252 'l10n_mode' => 'exclude',
253 'l10n_display' => 'defaultAsReadonly',
254 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.longitude',
255 'config' => array(
256 'type' => 'input',
257 'size' => '20',
258 'eval' => 'trim',
259 'max' => '30',
260 'default' => '0.00000000000000'
261 ),
262 ),
263 'ranking' => array(
264 'exclude' => 1,
265 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.ranking',
266 'config' => array(
267 'type' => 'select',
268 'minitems' => 1,
269 'maxitems' => 1,
270 'items' => array(
271 array(1, 1),
272 array(2, 2),
273 array(3, 3),
274 array(4, 4),
275 array(5, 5),
276 ),
277 ),
278 ),
279 'content_creation_date' => array(
280 'exclude' => 1,
281 'l10n_mode' => 'exclude',
282 'l10n_display' => 'defaultAsReadonly',
283 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_creation_date',
284 'config' => array(
285 'type' => 'input',
286 'size' => 12,
287 'max' => 20,
288 'eval' => 'date',
289 'checkbox' => 1,
290 'default' => time()
291 ),
292 ),
293 'content_modification_date' => array(
294 'exclude' => 1,
295 'l10n_mode' => 'exclude',
296 'l10n_display' => 'defaultAsReadonly',
297 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_modification_date',
298 'config' => array(
299 'type' => 'input',
300 'size' => 12,
301 'max' => 20,
302 'eval' => 'date',
303 'checkbox' => 1,
304 'default' => time()
305 ),
306 ),
307 'note' => array(
308 'exclude' => 1,
309 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.note',
310 'config' => array(
311 'type' => 'text',
312 'cols' => 40,
313 'rows' => 15,
314 'eval' => 'trim'
315 ),
316 ),
317 /*
318 * METRICS ###########################################
319 */
320 'unit' => array(
321 'exclude' => 1,
322 'l10n_mode' => 'exclude',
323 'l10n_display' => 'defaultAsReadonly',
324 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.unit',
325 'config' => array(
326 'type' => 'select',
327 'items' => array(
328 array('', ''),
329 array('px', 'px'),
330 array('mm', 'mm'),
331 array('cm', 'cm'),
332 array('m', 'm'),
333 array('p', 'p'),
334 ),
335 'default' => '',
336 'readOnly' => TRUE,
337 ),
338 ),
339 'duration' => array(
340 'exclude' => 1,
341 'l10n_mode' => 'exclude',
342 'l10n_display' => 'defaultAsReadonly',
343 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.duration',
344 'config' => array(
345 'type' => 'input',
346 'size' => '10',
347 'max' => '20',
348 'eval' => 'int',
349 'default' => '0'
350 )
351 ),
352 'color_space' => array(
353 'exclude' => 1,
354 'l10n_mode' => 'exclude',
355 'l10n_display' => 'defaultAsReadonly',
356 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space',
357 'config' => array(
358 'type' => 'select',
359 'items' => array(
360 array('', ''),
361 array('RGB', 'RGB'),
362 array('CMYK', 'CMYK'),
363 array('CMY', 'CMY'),
364 array('YUV', 'YUV'),
365 array('Grey', 'grey'),
366 array('indexed', 'indx'),
367 ),
368 'default' => '',
369 'readOnly' => TRUE,
370 )
371 ),
372 'width' => array(
373 'exclude' => 1,
374 'l10n_mode' => 'exclude',
375 'l10n_display' => 'defaultAsReadonly',
376 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.width',
377 'config' => array(
378 'type' => 'input',
379 'size' => '10',
380 'max' => '20',
381 'eval' => 'int',
382 'default' => '0',
383 'readOnly' => TRUE,
384 ),
385 ),
386 'height' => array(
387 'exclude' => 1,
388 'l10n_mode' => 'exclude',
389 'l10n_display' => 'defaultAsReadonly',
390 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.height',
391 'config' => array(
392 'type' => 'input',
393 'size' => '10',
394 'max' => '20',
395 'eval' => 'int',
396 'default' => '0',
397 'readOnly' => TRUE,
398 ),
399 ),
400 'pages' => array(
401 'exclude' => 1,
402 'l10n_mode' => 'exclude',
403 'l10n_display' => 'defaultAsReadonly',
404 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.pages',
405 'config' => array(
406 'type' => 'input',
407 'size' => 30,
408 'eval' => 'trim',
409 'readOnly' => TRUE
410 ),
411 ),
412 'language' => array(
413 'exclude' => 1,
414 'l10n_mode' => 'exclude',
415 'l10n_display' => 'defaultAsReadonly',
416 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.language',
417 'config' => array(
418 'type' => 'input',
419 'size' => 30,
420 'eval' => 'trim'
421 )
422 ),
423 'fe_groups' => array(
424 'exclude' => 1,
425 'l10n_mode' => 'exclude',
426 'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.fe_groups',
427 'config' => array(
428 'type' => 'select',
429 'size' => 10,
430 'minitems' => 0,
431 'maxitems' => 9999,
432 'autoSizeMax' => 30,
433 'multiple' => 0,
434 'foreign_table' => 'fe_groups',
435 'MM' => 'sys_file_fegroups_mm',
436 ),
437 ),
438 ),
439 );
440
441
442 return \TYPO3\CMS\Core\Utility\GeneralUtility::array_merge_recursive_overrule($GLOBALS['TCA']['sys_file_metadata'], $tca);