‪TYPO3CMS  10.4
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  'size' => 1,
45  'minitems' => 0,
46  'maxitems' => 1
47  ]
48  ],
49  'identifier' => [
50  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.identifier',
51  'config' => [
52  'readOnly' => true,
53  'type' => 'input',
54  'size' => 30
55  ]
56  ],
57  'name' => [
58  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.name',
59  'config' => [
60  'readOnly' => true,
61  'type' => 'input',
62  'size' => 30,
63  'eval' => 'required',
64  ]
65  ],
66  'type' => [
67  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type',
68  'config' => [
69  'readOnly' => true,
70  'type' => 'select',
71  'renderType' => 'selectSingle',
72  'size' => 1,
73  'items' => [
74  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.unknown', 0],
75  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.text', 1],
76  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.image', 2],
77  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.audio', 3],
78  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.video', 4],
79  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.type.software', 5]
80  ]
81  ]
82  ],
83  'mime_type' => [
84  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.mime_type',
85  'config' => [
86  'readOnly' => true,
87  'type' => 'input',
88  'size' => 30
89  ]
90  ],
91  'sha1' => [
92  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.sha1',
93  'config' => [
94  'readOnly' => true,
95  'type' => 'input',
96  'size' => 30,
97  ]
98  ],
99  'size' => [
100  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.size',
101  'config' => [
102  'readOnly' => true,
103  'type' => 'input',
104  'size' => 8,
105  'max' => 30,
106  'eval' => 'int',
107  'default' => 0
108  ]
109  ],
110  'missing' => [
111  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.missing',
112  'config' => [
113  'readOnly' => true,
114  'type' => 'check',
115  'default' => 0
116  ]
117  ],
118  'metadata' => [
119  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.metadata',
120  'config' => [
121  'readOnly' => true,
122  'type' => 'inline',
123  'foreign_table' => 'sys_file_metadata',
124  'foreign_field' => 'file',
125  'size' => 1,
126  'minitems' => 1,
127  'maxitems' => 1,
128  ]
129  ]
130  ],
131  'types' => [
132  '1' => ['showitem' => 'fileinfo, storage, missing']
133  ],
134  'palettes' => []
135 ];