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