TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
sys_file_collection.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'LLL:EXT:lang/Resources/Private/Language/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' => [
19  'default' => 'apps-filetree-folder-media',
20  'static' => 'apps-clipboard-images',
21  'folder' => 'apps-filetree-folder-media'
22  ],
23  'requestUpdate' => 'storage',
24  'enablecolumns' => [
25  'disabled' => 'hidden',
26  'starttime' => 'starttime',
27  'endtime' => 'endtime'
28  ],
29  'searchFields' => 'files,title'
30  ],
31  'interface' => [
32  'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
33  ],
34  'columns' => [
35  't3ver_label' => [
36  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
37  'config' => [
38  'type' => 'input',
39  'size' => 30,
40  'max' => 30
41  ]
42  ],
43  'sys_language_uid' => [
44  'exclude' => true,
45  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
46  'config' => [
47  'type' => 'select',
48  'renderType' => 'selectSingle',
49  'foreign_table' => 'sys_language',
50  'foreign_table_where' => 'ORDER BY sys_language.title',
51  'items' => [
52  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
53  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
54  ],
55  'default' => 0,
56  'showIconTable' => true,
57  ]
58  ],
59  'l10n_parent' => [
60  'displayCond' => 'FIELD:sys_language_uid:>:0',
61  'exclude' => true,
62  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
63  'config' => [
64  'type' => 'select',
65  'renderType' => 'selectSingle',
66  'items' => [
67  ['', 0]
68  ],
69  'foreign_table' => 'sys_file_collection',
70  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
71  ]
72  ],
73  'l10n_diffsource' => [
74  'config' => [
75  'type' => 'passthrough',
76  'default' => ''
77  ]
78  ],
79  'hidden' => [
80  'exclude' => true,
81  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
82  'config' => [
83  'type' => 'check',
84  'default' => 0
85  ]
86  ],
87  'starttime' => [
88  'exclude' => true,
89  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
90  'config' => [
91  'type' => 'input',
92  'size' => 8,
93  'max' => 20,
94  'eval' => 'date',
95  'default' => 0,
96  ]
97  ],
98  'endtime' => [
99  'exclude' => true,
100  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
101  'config' => [
102  'type' => 'input',
103  'size' => 8,
104  'max' => 20,
105  'eval' => 'date',
106  'default' => 0,
107  'range' => [
108  'upper' => mktime(0, 0, 0, 1, 1, 2038),
109  ]
110  ]
111  ],
112  'type' => [
113  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type',
114  'config' => [
115  'type' => 'select',
116  'renderType' => 'selectSingle',
117  'items' => [
118  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.0', 'static'],
119  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.1', 'folder'],
120  ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.2', 'category']
121  ]
122  ]
123  ],
124  'files' => [
125  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.files',
127  ],
128  'title' => [
129  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.title',
130  'config' => [
131  'type' => 'input',
132  'size' => 30,
133  'eval' => 'required'
134  ]
135  ],
136  'storage' => [
137  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.storage',
138  'config' => [
139  'type' => 'select',
140  'renderType' => 'selectSingle',
141  'items' => [
142  ['', 0]
143  ],
144  'foreign_table' => 'sys_file_storage',
145  'foreign_table_where' => 'ORDER BY sys_file_storage.name',
146  'size' => 1,
147  'minitems' => 0,
148  'maxitems' => 1
149  ]
150  ],
151  'folder' => [
152  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.folder',
153  'config' => [
154  'type' => 'select',
155  'renderType' => 'selectSingle',
156  'items' => [],
157  'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown',
158  'default' => '',
159  ]
160  ],
161  'recursive' => [
162  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.recursive',
163  'config' => [
164  'type' => 'check',
165  'default' => 0
166  ]
167  ],
168  'category' => [
169  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.category',
170  'config' => [
171  'minitems' => 0,
172  'maxitems' => 1,
173  'type' => 'select',
174  'renderType' => 'selectTree',
175  'foreign_table' => 'sys_category',
176  'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
177  'treeConfig' => [
178  'parentField' => 'parent',
179  'appearance' => [
180  'expandAll' => true,
181  'showHeader' => true,
182  ]
183  ]
184  ]
185  ]
186  ],
187  'types' => [
188  '0' => [
189  'showitem' => '
190  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
191  type,title,files,
192  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
193  --palette--;;language,
194  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
195  --palette--;;timeRestriction,
196  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
197  '
198  ],
199  'static' => [
200  'showitem' => '
201  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
202  type,title,files,
203  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
204  --palette--;;language,
205  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
206  --palette--;;timeRestriction,
207  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
208  '
209  ],
210  'folder' => [
211  'showitem' => '
212  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
213  type,title,storage, folder, recursive,
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:extended,
219  '
220  ],
221  'category' => [
222  'showitem' => '
223  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
224  type,title,category,
225  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
226  --palette--;;language,
227  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
228  --palette--;;timeRestriction,
229  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
230  ',
231  ],
232  ],
233  'palettes' => [
234  'timeRestriction' => ['showitem' => 'starttime, endtime'],
235  'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
236  ],
237 ];
static getFileFieldTCAConfig($fieldName, array $customSettingOverride=[], $allowedFileExtensions= '', $disallowedFileExtensions= '')