TYPO3 CMS  TYPO3_7-6
sys_file.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'LLL:EXT:lang/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  'exclude' => 0,
38  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.storage',
39  'config' => [
40  'readOnly' => 1,
41  'type' => 'select',
42  'renderType' => 'selectSingle',
43  'items' => [
44  ['', 0]
45  ],
46  'foreign_table' => 'sys_file_storage',
47  'foreign_table_where' => 'ORDER BY sys_file_storage.name',
48  'size' => 1,
49  'minitems' => 0,
50  'maxitems' => 1
51  ]
52  ],
53  'identifier' => [
54  'exclude' => 0,
55  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.identifier',
56  'config' => [
57  'readOnly' => 1,
58  'type' => 'input',
59  'size' => '30'
60  ]
61  ],
62  'name' => [
63  'exclude' => 0,
64  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.name',
65  'config' => [
66  'readOnly' => 1,
67  'type' => 'input',
68  'size' => '30',
69  'eval' => 'required',
70  ]
71  ],
72  'type' => [
73  'exclude' => 0,
74  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.type',
75  'config' => [
76  'readOnly' => 1,
77  'type' => 'select',
78  'renderType' => 'selectSingle',
79  'size' => '1',
80  'items' => [
81  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0],
82  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1],
83  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2],
84  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3],
85  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4],
86  ['LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5]
87  ]
88  ]
89  ],
90  'mime_type' => [
91  'exclude' => 0,
92  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.mime_type',
93  'config' => [
94  'readOnly' => 1,
95  'type' => 'input',
96  'size' => '30'
97  ]
98  ],
99  'sha1' => [
100  'exclude' => 0,
101  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.sha1',
102  'config' => [
103  'readOnly' => 1,
104  'type' => 'input',
105  'size' => '30',
106  ]
107  ],
108  'size' => [
109  'exclude' => 0,
110  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.size',
111  'config' => [
112  'readOnly' => 1,
113  'type' => 'input',
114  'size' => '8',
115  'max' => '30',
116  'eval' => 'int',
117  'default' => 0
118  ]
119  ],
120  'missing' => [
121  'exclude' => 0,
122  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.missing',
123  'config' => [
124  'readOnly' => 1,
125  'type' => 'check',
126  'default' => 0
127  ]
128  ],
129  'metadata' => [
130  'exclude' => 0,
131  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.metadata',
132  'config' => [
133  'readOnly' => 1,
134  'type' => 'inline',
135  'foreign_table' => 'sys_file_metadata',
136  'foreign_field' => 'file',
137  'size' => 1,
138  'minitems' => 1,
139  'maxitems' => 1,
140  ]
141  ]
142  ],
143  'types' => [
144  '1' => ['showitem' => 'fileinfo, storage, missing']
145  ],
146  'palettes' => []
147 ];