TYPO3 CMS  TYPO3_7-6
sys_file_storage.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
5  'label' => 'name',
6  'tstamp' => 'tstamp',
7  'crdate' => 'crdate',
8  'cruser_id' => 'cruser_id',
9  'default_sortby' => 'ORDER BY name',
10  'delete' => 'deleted',
11  'rootLevel' => true,
12  'versioningWS_alwaysAllowLiveEdit' => true, // Only have LIVE records of file storages
13  'enablecolumns' => [],
14  'requestUpdate' => 'driver',
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  'exclude' => 0,
26  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
27  'config' => [
28  'type' => 'input',
29  'size' => '30',
30  'eval' => 'required'
31  ]
32  ],
33  'description' => [
34  'exclude' => 0,
35  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
36  'config' => [
37  'type' => 'text',
38  'cols' => '30',
39  'rows' => '5'
40  ]
41  ],
42  'is_browsable' => [
43  'exclude' => 0,
44  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
45  'config' => [
46  'type' => 'check',
47  'default' => 1
48  ]
49  ],
50  'is_default' => [
51  'exclude' => 0,
52  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
53  'config' => [
54  'type' => 'check',
55  'default' => 0,
56  'eval' => 'maximumRecordsChecked',
57  'validation' => [
58  'maximumRecordsChecked' => 1
59  ]
60  ]
61  ],
62  'is_public' => [
63  'exclude' => 0,
64  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
65  'config' => [
66  'default' => true,
67  'type' => 'user',
68  'userFunc' => \TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::class . '->renderIsPublic',
69  ]
70  ],
71  'is_writable' => [
72  'exclude' => 0,
73  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
74  'config' => [
75  'type' => 'check',
76  'default' => 1
77  ]
78  ],
79  'is_online' => [
80  'exclude' => 0,
81  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
82  'config' => [
83  'type' => 'check',
84  'default' => 1
85  ]
86  ],
87  'auto_extract_metadata' => [
88  'exclude' => 0,
89  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
90  'config' => [
91  'type' => 'check',
92  'default' => 1
93  ]
94  ],
95  'processingfolder' => [
96  'exclude' => 0,
97  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
98  'config' => [
99  'type' => 'input',
100  'placeholder' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
101  'size' => '20'
102  ]
103  ],
104  'driver' => [
105  'exclude' => 0,
106  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
107  'config' => [
108  'type' => 'select',
109  'renderType' => 'selectSingle',
110  'items' => [],
111  'default' => 'Local',
112  'onChange' => 'reload'
113  ]
114  ],
115  'configuration' => [
116  'exclude' => 0,
117  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
118  'config' => [
119  'type' => 'flex',
120  'ds_pointerField' => 'driver',
121  'ds' => []
122  ],
123  ]
124  ],
125  'types' => [
126  '0' => ['showitem' => 'name, description, --div--;Configuration, driver, configuration, is_default, auto_extract_metadata, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online']
127  ],
128  'palettes' => [
129  'capabilities' => [
130  'showitem' => 'is_browsable, is_public, is_writable',
131  ],
132  ],
133 ];