0549b8e27a0b76bd7f81e25f6435ef8f5f2b08d6
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'type' => 'type',
8 'hideTable' => true,
9 'rootLevel' => true,
10 'default_sortby' => 'ORDER BY name ASC',
11 'typeicon_column' => 'type',
12 'typeicon_classes' => [
13 '1' => 'mimetypes-text-text',
14 '2' => 'mimetypes-media-image',
15 '3' => 'mimetypes-media-audio',
16 '4' => 'mimetypes-media-video',
17 '5' => 'mimetypes-application',
18 'default' => 'mimetypes-other-other'
19 ],
20 'security' => [
21 'ignoreWebMountRestriction' => true,
22 'ignoreRootLevelRestriction' => true,
23 ],
24 'searchFields' => 'name, type, mime_type, sha1'
25 ],
26 'interface' => [
27 'showRecordFieldList' => 'storage, name, type, mime_type, size, sha1, missing'
28 ],
29 'columns' => [
30 'fileinfo' => [
31 'config' => [
32 'type' => 'user',
33 'userFunc' => 'TYPO3\\CMS\\Core\\Resource\\Hook\\FileInfoHook->renderFileInfo'
34 ]
35 ],
36 'storage' => [
37 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.storage',
38 'config' => [
39 'readOnly' => true,
40 'type' => 'select',
41 'renderType' => 'selectSingle',
42 'items' => [
43 ['', 0]
44 ],
45 'foreign_table' => 'sys_file_storage',
46 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
47 'size' => 1,
48 'minitems' => 0,
49 'maxitems' => 1
50 ]
51 ],
52 'identifier' => [
53 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.identifier',
54 'config' => [
55 'readOnly' => true,
56 'type' => 'input',
57 'size' => 30
58 ]
59 ],
60 'name' => [
61 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.name',
62 'config' => [
63 'readOnly' => true,
64 'type' => 'input',
65 'size' => 30,
66 'eval' => 'required',
67 ]
68 ],
69 'type' => [
70 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type',
71 'config' => [
72 'readOnly' => true,
73 'type' => 'select',
74 'renderType' => 'selectSingle',
75 'size' => 1,
76 'items' => [
77 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.unknown', 0],
78 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.text', 1],
79 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.image', 2],
80 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.audio', 3],
81 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.video', 4],
82 ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.type.software', 5]
83 ]
84 ]
85 ],
86 'mime_type' => [
87 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.mime_type',
88 'config' => [
89 'readOnly' => true,
90 'type' => 'input',
91 'size' => 30
92 ]
93 ],
94 'sha1' => [
95 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.sha1',
96 'config' => [
97 'readOnly' => true,
98 'type' => 'input',
99 'size' => 30,
100 ]
101 ],
102 'size' => [
103 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.size',
104 'config' => [
105 'readOnly' => true,
106 'type' => 'input',
107 'size' => 8,
108 'max' => 30,
109 'eval' => 'int',
110 'default' => 0
111 ]
112 ],
113 'missing' => [
114 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.missing',
115 'config' => [
116 'readOnly' => true,
117 'type' => 'check',
118 'default' => 0
119 ]
120 ],
121 'metadata' => [
122 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file.metadata',
123 'config' => [
124 'readOnly' => true,
125 'type' => 'inline',
126 'foreign_table' => 'sys_file_metadata',
127 'foreign_field' => 'file',
128 'size' => 1,
129 'minitems' => 1,
130 'maxitems' => 1,
131 ]
132 ]
133 ],
134 'types' => [
135 '1' => ['showitem' => 'fileinfo, storage, missing']
136 ],
137 'palettes' => []
138 ];