‪TYPO3CMS  10.4
sys_file_storage.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_storage',
6  'label' => 'name',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'cruser_id' => 'cruser_id',
10  'default_sortby' => 'name',
11  'delete' => 'deleted',
12  'descriptionColumn' => 'description',
13  'rootLevel' => 1,
14  'versioningWS_alwaysAllowLiveEdit' => true, // Only have LIVE records of file storages
15  'enablecolumns' => [],
16  'typeicon_classes' => [
17  'default' => 'mimetypes-x-sys_file_storage'
18  ],
19  'searchFields' => 'name,description'
20  ],
21  'columns' => [
22  'name' => [
23  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.name',
24  'config' => [
25  'type' => 'input',
26  'size' => 50,
27  'max' => 255,
28  'eval' => 'required'
29  ]
30  ],
31  'description' => [
32  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.description',
33  'config' => [
34  'type' => 'text',
35  'cols' => 30,
36  'rows' => 5
37  ]
38  ],
39  'is_browsable' => [
40  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_browsable',
41  'config' => [
42  'type' => 'check',
43  'renderType' => 'checkboxToggle',
44  'default' => 1,
45  'items' => [
46  [
47  0 => '',
48  1 => '',
49  ]
50  ],
51  ]
52  ],
53  'is_default' => [
54  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_default',
55  'config' => [
56  'type' => 'check',
57  'renderType' => 'checkboxToggle',
58  'default' => 0,
59  'eval' => 'maximumRecordsChecked',
60  'validation' => [
61  'maximumRecordsChecked' => 1
62  ],
63  'items' => [
64  [
65  0 => '',
66  1 => '',
67  ]
68  ],
69  ]
70  ],
71  'is_public' => [
72  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_public',
73  'config' => [
74  'default' => 1,
75  'type' => 'user',
76  'renderType' => 'userSysFileStorageIsPublic',
77  ]
78  ],
79  'is_writable' => [
80  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_writable',
81  'config' => [
82  'type' => 'check',
83  'renderType' => 'checkboxToggle',
84  'default' => 1,
85  'items' => [
86  [
87  0 => '',
88  1 => '',
89  ]
90  ],
91  ]
92  ],
93  'is_online' => [
94  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.is_online',
95  'config' => [
96  'type' => 'check',
97  'renderType' => 'checkboxToggle',
98  'default' => 1,
99  'items' => [
100  [
101  0 => '',
102  1 => '',
103  ]
104  ],
105  ]
106  ],
107  'auto_extract_metadata' => [
108  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
109  'config' => [
110  'type' => 'check',
111  'renderType' => 'checkboxToggle',
112  'default' => 1,
113  'items' => [
114  [
115  0 => '',
116  1 => '',
117  ]
118  ],
119  ]
120  ],
121  'processingfolder' => [
122  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.processingfolder',
123  'config' => [
124  'type' => 'input',
125  'placeholder' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
126  'size' => 20
127  ]
128  ],
129  'driver' => [
130  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.driver',
131  'onChange' => 'reload',
132  'config' => [
133  'type' => 'select',
134  'renderType' => 'selectSingle',
135  'items' => [],
136  'default' => 'Local',
137  'onChange' => 'reload'
138  ]
139  ],
140  'configuration' => [
141  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.configuration',
142  'config' => [
143  'type' => 'flex',
144  'ds_pointerField' => 'driver',
145  'ds' => []
146  ],
147  ]
148  ],
149  'types' => [
150  '0' => ['showitem' => '
151  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
152  name, driver, configuration, is_default, auto_extract_metadata, processingfolder,
153  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:accesscapabilities,
154  --palette--;Capabilities;capabilities,
155  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
156  is_online,
157  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
158  description,
159  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
160  ']
161  ],
162  'palettes' => [
163  'capabilities' => [
164  'showitem' => 'is_browsable, is_public, is_writable',
165  ],
166  ],
167 ];