993b8b9f561c07e8ec682e592732b6178f42d0bc
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_collection.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'versioningWS' => TRUE,
10 'origUid' => 't3_origuid',
11 'languageField' => 'sys_language_uid',
12 'transOrigPointerField' => 'l10n_parent',
13 'transOrigDiffSourceField' => 'l10n_diffsource',
14 'default_sortby' => 'ORDER BY crdate',
15 'delete' => 'deleted',
16 'type' => 'type',
17 'typeicon_column' => 'type',
18 'typeicon_classes' => array(
19 'default' => 'apps-filetree-folder-media',
20 'static' => 'apps-clipboard-images',
21 'folder' => 'apps-filetree-folder-media'
22 ),
23 'requestUpdate' => 'storage',
24 'enablecolumns' => array(
25 'disabled' => 'hidden',
26 'starttime' => 'starttime',
27 'endtime' => 'endtime'
28 ),
29 'searchFields' => 'files,title'
30 ),
31 'interface' => array(
32 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
33 ),
34 'columns' => array(
35 't3ver_label' => array(
36 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
37 'config' => array(
38 'type' => 'input',
39 'size' => '30',
40 'max' => '30'
41 )
42 ),
43 'sys_language_uid' => array(
44 'exclude' => 1,
45 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
46 'config' => array(
47 'type' => 'select',
48 'foreign_table' => 'sys_language',
49 'foreign_table_where' => 'ORDER BY sys_language.title',
50 'items' => array(
51 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
52 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
53 ),
54 'default' => 0
55 )
56 ),
57 'l10n_parent' => array(
58 'displayCond' => 'FIELD:sys_language_uid:>:0',
59 'exclude' => 1,
60 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
61 'config' => array(
62 'type' => 'select',
63 'items' => array(
64 array('', 0)
65 ),
66 'foreign_table' => 'sys_file_collection',
67 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
68 )
69 ),
70 'l10n_diffsource' => array(
71 'config' => array(
72 'type' => 'passthrough',
73 'default' => ''
74 )
75 ),
76 'hidden' => array(
77 'exclude' => 1,
78 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
79 'config' => array(
80 'type' => 'check',
81 'default' => '0'
82 )
83 ),
84 'starttime' => array(
85 'exclude' => 1,
86 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
87 'config' => array(
88 'type' => 'input',
89 'size' => '8',
90 'max' => '20',
91 'eval' => 'date',
92 'default' => '0',
93 'checkbox' => '0'
94 )
95 ),
96 'endtime' => array(
97 'exclude' => 1,
98 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
99 'config' => array(
100 'type' => 'input',
101 'size' => '8',
102 'max' => '20',
103 'eval' => 'date',
104 'checkbox' => '0',
105 'default' => '0',
106 'range' => array(
107 'upper' => mktime(0, 0, 0, 1, 1, 2038),
108 )
109 )
110 ),
111 'type' => array(
112 'exclude' => 0,
113 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type',
114 'config' => array(
115 'type' => 'select',
116 'items' => array(
117 array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.0', 'static'),
118 array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.1', 'folder'),
119 array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.2', 'category')
120 )
121 )
122 ),
123 'files' => array(
124 'exclude' => 0,
125 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files',
126 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')
127 ),
128 'title' => array(
129 'exclude' => 0,
130 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title',
131 'config' => array(
132 'type' => 'input',
133 'size' => '30',
134 'eval' => 'required'
135 )
136 ),
137 'storage' => array(
138 'exclude' => 0,
139 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage',
140 'config' => array(
141 'type' => 'select',
142 'items' => array(
143 array('', 0)
144 ),
145 'foreign_table' => 'sys_file_storage',
146 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
147 'size' => 1,
148 'minitems' => 0,
149 'maxitems' => 1
150 )
151 ),
152 'folder' => array(
153 'exclude' => 0,
154 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder',
155 'config' => array(
156 'type' => 'select',
157 'items' => array(),
158 'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
159 )
160 ),
161 'recursive' => array(
162 'exclude' => 0,
163 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.recursive',
164 'config' => array(
165 'type' => 'check',
166 'default' => 0
167 )
168 ),
169 'category' => array(
170 'exclude' => 0,
171 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.category',
172 'config' => array(
173 'minitems' => 0,
174 'maxitems' => 1,
175 'type' => 'select',
176 'renderMode' => 'tree',
177 'foreign_table' => 'sys_category',
178 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
179 'treeConfig' => array(
180 'parentField' => 'parent',
181 'appearance' => array(
182 'expandAll' => TRUE,
183 'showHeader' => TRUE,
184 )
185 )
186 )
187 )
188 ),
189 'types' => array(
190 '0' => array(
191 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, title, --palette--;;1, type, files',
192 ),
193 'static' => array(
194 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, title, --palette--;;1, type, files',
195 ),
196 'folder' => array(
197 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, title, --palette--;;1, type, storage, folder, recursive',
198 ),
199 'category' => array(
200 'showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, title, --palette--;;1, type, category',
201 ),
202 ),
203 'palettes' => array(
204 '1' => array(
205 'showitem' => 'hidden, starttime, endtime',
206 ),
207 ),
208 );