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