3e1c527a26fa4ce3c1c06651f4182465ae355f01
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_storage.php
1 <?php
2 return array(
3 'ctrl' => array(
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' => array(),
14 'requestUpdate' => 'driver',
15 'typeicon_classes' => array(
16 'default' => 'mimetypes-x-sys_file_storage'
17 ),
18 'searchFields' => 'name,description'
19 ),
20 'interface' => array(
21 'showRecordFieldList' => 'name,description,driver,processingfolder,configuration,auto_extract_metadata'
22 ),
23 'columns' => array(
24 'name' => array(
25 'exclude' => 0,
26 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
27 'config' => array(
28 'type' => 'input',
29 'size' => '30',
30 'eval' => 'required'
31 )
32 ),
33 'description' => array(
34 'exclude' => 0,
35 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
36 'config' => array(
37 'type' => 'text',
38 'cols' => '30',
39 'rows' => '5'
40 )
41 ),
42 'is_browsable' => array(
43 'exclude' => 0,
44 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
45 'config' => array(
46 'type' => 'check',
47 'default' => 1
48 )
49 ),
50 'is_default' => array(
51 'exclude' => 0,
52 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
53 'config' => array(
54 'type' => 'check',
55 'default' => 0,
56 'eval' => 'maximumRecordsChecked',
57 'validation' => array(
58 'maximumRecordsChecked' => 1
59 )
60 )
61 ),
62 'is_public' => array(
63 'exclude' => 0,
64 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
65 'config' => array(
66 'default' => true,
67 'type' => 'user',
68 'userFunc' => \TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::class . '->renderIsPublic',
69 )
70 ),
71 'is_writable' => array(
72 'exclude' => 0,
73 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
74 'config' => array(
75 'type' => 'check',
76 'default' => 1
77 )
78 ),
79 'is_online' => array(
80 'exclude' => 0,
81 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
82 'config' => array(
83 'type' => 'check',
84 'default' => 1
85 )
86 ),
87 'auto_extract_metadata' => array(
88 'exclude' => 0,
89 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.auto_extract_metadata',
90 'config' => array(
91 'type' => 'check',
92 'default' => 1
93 )
94 ),
95 'processingfolder' => array(
96 'exclude' => 0,
97 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
98 'config' => array(
99 'type' => 'input',
100 'placeholder' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder.placeholder',
101 'size' => '20'
102 )
103 ),
104 'driver' => array(
105 'exclude' => 0,
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
107 'config' => array(
108 'type' => 'select',
109 'renderType' => 'selectSingle',
110 'items' => array(),
111 'default' => 'Local',
112 'onChange' => 'reload'
113 )
114 ),
115 'configuration' => array(
116 'exclude' => 0,
117 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
118 'config' => array(
119 'type' => 'flex',
120 'ds_pointerField' => 'driver',
121 'ds' => array()
122 ),
123 )
124 ),
125 'types' => array(
126 '0' => array('showitem' => 'name, description, --div--;Configuration, driver, configuration, is_default, auto_extract_metadata, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
127 ),
128 'palettes' => array(
129 'capabilities' => array(
130 'showitem' => 'is_browsable, is_public, is_writable',
131 ),
132 ),
133 );