TYPO3 CMS  TYPO3_6-2
sys_file_collection.php
Go to the documentation of this file.
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  )
55  ),
56  'l10n_parent' => array(
57  'displayCond' => 'FIELD:sys_language_uid:>:0',
58  'exclude' => 1,
59  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
60  'config' => array(
61  'type' => 'select',
62  'items' => array(
63  array('', 0)
64  ),
65  'foreign_table' => 'sys_file_collection',
66  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
67  )
68  ),
69  'l10n_diffsource' => array(
70  'config' => array(
71  'type' => 'passthrough'
72  )
73  ),
74  'hidden' => array(
75  'exclude' => 1,
76  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
77  'config' => array(
78  'type' => 'check',
79  'default' => '0'
80  )
81  ),
82  'starttime' => array(
83  'exclude' => 1,
84  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
85  'config' => array(
86  'type' => 'input',
87  'size' => '8',
88  'max' => '20',
89  'eval' => 'date',
90  'default' => '0',
91  'checkbox' => '0'
92  )
93  ),
94  'endtime' => array(
95  'exclude' => 1,
96  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
97  'config' => array(
98  'type' => 'input',
99  'size' => '8',
100  'max' => '20',
101  'eval' => 'date',
102  'checkbox' => '0',
103  'default' => '0',
104  'range' => array(
105  'upper' => mktime(0, 0, 0, 1, 1, 2038),
106  )
107  )
108  ),
109  'type' => array(
110  'exclude' => 0,
111  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type',
112  'config' => array(
113  'type' => 'select',
114  'items' => array(
115  array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.0', 'static'),
116  array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.1', 'folder'),
117  array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.2', 'category')
118  )
119  )
120  ),
121  'files' => array(
122  'exclude' => 0,
123  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files',
124  'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')
125  ),
126  'title' => array(
127  'exclude' => 0,
128  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title',
129  'config' => array(
130  'type' => 'input',
131  'size' => '30',
132  'eval' => 'required'
133  )
134  ),
135  'storage' => array(
136  'exclude' => 0,
137  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage',
138  'config' => array(
139  'type' => 'select',
140  'items' => array(
141  array('', 0)
142  ),
143  'foreign_table' => 'sys_file_storage',
144  'foreign_table_where' => 'ORDER BY sys_file_storage.name',
145  'size' => 1,
146  'minitems' => 0,
147  'maxitems' => 1
148  )
149  ),
150  'folder' => array(
151  'exclude' => 0,
152  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder',
153  'config' => array(
154  'type' => 'select',
155  'items' => array(),
156  'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
157  )
158  ),
159  'category' => array(
160  'exclude' => 0,
161  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.category',
162  'config' => array(
163  'minitems' => 0,
164  'maxitems' => 1,
165  'type' => 'select',
166  'renderMode' => 'tree',
167  'foreign_table' => 'sys_category',
168  'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
169  'treeConfig' => array(
170  'parentField' => 'parent',
171  'appearance' => array(
172  'expandAll' => TRUE,
173  'showHeader' => TRUE,
174  )
175  )
176  )
177  )
178  ),
179  'types' => array(
180  '0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
181  'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
182  'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder'),
183  'category' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, category')
184  ),
185  'palettes' => array(
186  '1' => array('showitem' => 'hidden, starttime, endtime')
187  )
188 );