‪TYPO3CMS  10.4
sys_file_collection.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_collection',
6  'label' => 'title',
7  'descriptionColumn' => 'description',
8  'tstamp' => 'tstamp',
9  'crdate' => 'crdate',
10  'cruser_id' => 'cruser_id',
11  'versioningWS' => true,
12  'origUid' => 't3_origuid',
13  'languageField' => 'sys_language_uid',
14  'transOrigPointerField' => 'l10n_parent',
15  'transOrigDiffSourceField' => 'l10n_diffsource',
16  'default_sortby' => 'crdate',
17  'delete' => 'deleted',
18  'type' => 'type',
19  'typeicon_column' => 'type',
20  'typeicon_classes' => [
21  'default' => 'apps-filetree-folder-media',
22  'static' => 'apps-clipboard-images',
23  'folder' => 'apps-filetree-folder-media'
24  ],
25  'enablecolumns' => [
26  'disabled' => 'hidden',
27  'starttime' => 'starttime',
28  'endtime' => 'endtime'
29  ],
30  'searchFields' => 'files,title'
31  ],
32  'columns' => [
33  'sys_language_uid' => [
34  'exclude' => true,
35  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
36  'config' => [
37  'type' => 'select',
38  'renderType' => 'selectSingle',
39  'foreign_table' => 'sys_language',
40  'items' => [
41  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
42  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
43  ],
44  'default' => 0,
45  'fieldWizard' => [
46  'selectIcons' => [
47  'disabled' => false,
48  ],
49  ],
50  ]
51  ],
52  'l10n_parent' => [
53  'displayCond' => 'FIELD:sys_language_uid:>:0',
54  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
55  'config' => [
56  'type' => 'select',
57  'renderType' => 'selectSingle',
58  'items' => [
59  ['', 0]
60  ],
61  'foreign_table' => 'sys_file_collection',
62  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)',
63  'default' => 0,
64  ]
65  ],
66  'l10n_diffsource' => [
67  'config' => [
68  'type' => 'passthrough',
69  'default' => ''
70  ]
71  ],
72  'hidden' => [
73  'exclude' => true,
74  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
75  'config' => [
76  'type' => 'check',
77  'default' => 0
78  ]
79  ],
80  'starttime' => [
81  'exclude' => true,
82  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
83  'config' => [
84  'type' => 'input',
85  'renderType' => 'inputDateTime',
86  'eval' => 'date,int',
87  'default' => 0,
88  ]
89  ],
90  'endtime' => [
91  'exclude' => true,
92  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
93  'config' => [
94  'type' => 'input',
95  'renderType' => 'inputDateTime',
96  'eval' => 'date,int',
97  'default' => 0,
98  'range' => [
99  'upper' => mktime(0, 0, 0, 1, 1, 2038),
100  ]
101  ]
102  ],
103  'type' => [
104  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type',
105  'config' => [
106  'type' => 'select',
107  'renderType' => 'selectSingle',
108  'items' => [
109  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.0', 'static'],
110  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.1', 'folder'],
111  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.2', 'category']
112  ]
113  ]
114  ],
115  'files' => [
116  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.files',
118  ],
119  'title' => [
120  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.title',
121  'config' => [
122  'type' => 'input',
123  'size' => 30,
124  'eval' => 'required'
125  ]
126  ],
127  'storage' => [
128  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.storage',
129  'onChange' => 'reload',
130  'config' => [
131  'type' => 'select',
132  'renderType' => 'selectSingle',
133  'items' => [
134  ['', 0]
135  ],
136  'foreign_table' => 'sys_file_storage',
137  'size' => 1,
138  'minitems' => 0,
139  'maxitems' => 1,
140  'default' => 0,
141  ]
142  ],
143  'folder' => [
144  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.folder',
145  'config' => [
146  'type' => 'select',
147  'renderType' => 'selectSingle',
148  'items' => [],
149  'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
150  'default' => '',
151  ]
152  ],
153  'recursive' => [
154  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.recursive',
155  'config' => [
156  'type' => 'check',
157  'renderType' => 'checkboxToggle',
158  'default' => 0,
159  'items' => [
160  [
161  0 => '',
162  1 => '',
163  ]
164  ],
165  ]
166  ],
167  'category' => [
168  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.category',
169  'config' => [
170  'minitems' => 0,
171  'maxitems' => 1,
172  'type' => 'select',
173  'renderType' => 'selectTree',
174  'foreign_table' => 'sys_category',
175  'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0)',
176  'treeConfig' => [
177  'parentField' => 'parent',
178  'appearance' => [
179  'expandAll' => true,
180  'showHeader' => true,
181  ]
182  ],
183  'default' => 0,
184  ]
185  ],
186  'description' => [
187  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
188  'config' => [
189  'type' => 'text',
190  'rows' => 5,
191  'cols' => 30,
192  'max' => 2000,
193  ]
194  ]
195  ],
196  'types' => [
197  '0' => [
198  'showitem' => '
199  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
200  type,title,files,
201  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
202  --palette--;;language,
203  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
204  --palette--;;timeRestriction,
205  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
206  description,
207  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
208  '
209  ],
210  'static' => [
211  'showitem' => '
212  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
213  type,title,files,
214  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
215  --palette--;;language,
216  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
217  --palette--;;timeRestriction,
218  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
219  description,
220  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
221  '
222  ],
223  'folder' => [
224  'showitem' => '
225  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
226  type,title,storage, folder, recursive,
227  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
228  --palette--;;language,
229  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
230  --palette--;;timeRestriction,
231  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
232  description,
233  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
234  '
235  ],
236  'category' => [
237  'showitem' => '
238  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
239  type,title,category,
240  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
241  --palette--;;language,
242  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
243  --palette--;;timeRestriction,
244  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
245  description,
246  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
247  ',
248  ],
249  ],
250  'palettes' => [
251  'timeRestriction' => ['showitem' => 'starttime, endtime'],
252  'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
253  ],
254 ];
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getFileFieldTCAConfig
‪static array getFileFieldTCAConfig($fieldName, array $customSettingOverride=[], $allowedFileExtensions='', $disallowedFileExtensions='')
Definition: ExtensionManagementUtility.php:550