[TASK] Raise submodule pointer
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / SysFileCollection.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 'rootlevel' => -1,
17 'type' => 'type',
18 'typeicon_column' => 'type',
19 'typeicon_classes' => array(
20 'default' => 'apps-filetree-folder-media',
21 'static' => 'apps-clipboard-images',
22 'folder' => 'apps-filetree-folder-media'
23 ),
24 'enablecolumns' => array(
25 'disabled' => 'hidden',
26 'starttime' => 'starttime',
27 'endtime' => 'endtime'
28 ),
29 ),
30 'interface' => array(
31 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
32 ),
33 'columns' => array(
34 't3ver_label' => array(
35 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
36 'config' => array(
37 'type' => 'input',
38 'size' => '30',
39 'max' => '30'
40 )
41 ),
42 'sys_language_uid' => array(
43 'exclude' => 1,
44 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
45 'config' => array(
46 'type' => 'select',
47 'foreign_table' => 'sys_language',
48 'foreign_table_where' => 'ORDER BY sys_language.title',
49 'items' => array(
50 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
51 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
52 )
53 )
54 ),
55 'l10n_parent' => array(
56 'displayCond' => 'FIELD:sys_language_uid:>:0',
57 'exclude' => 1,
58 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
59 'config' => array(
60 'type' => 'select',
61 'items' => array(
62 array('', 0)
63 ),
64 'foreign_table' => 'sys_file_collection',
65 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
66 )
67 ),
68 'l10n_diffsource' => array(
69 'config' => array(
70 'type' => 'passthrough'
71 )
72 ),
73 'hidden' => array(
74 'exclude' => 1,
75 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
76 'config' => array(
77 'type' => 'check',
78 'default' => '0'
79 )
80 ),
81 'starttime' => array(
82 'exclude' => 1,
83 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
84 'config' => array(
85 'type' => 'input',
86 'size' => '8',
87 'max' => '20',
88 'eval' => 'date',
89 'default' => '0',
90 'checkbox' => '0'
91 )
92 ),
93 'endtime' => array(
94 'exclude' => 1,
95 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
96 'config' => array(
97 'type' => 'input',
98 'size' => '8',
99 'max' => '20',
100 'eval' => 'date',
101 'checkbox' => '0',
102 'default' => '0',
103 'range' => array(
104 'upper' => mktime(3, 14, 7, 1, 19, 2038),
105 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
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('Static selection of files', 'static'),
116 array('Folder from Storage', 'folder')
117 )
118 )
119 ),
120 'files' => array(
121 'exclude' => 0,
122 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files',
123 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')
124 ),
125 'title' => array(
126 'exclude' => 0,
127 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title',
128 'config' => array(
129 'type' => 'input',
130 'size' => '30',
131 'eval' => 'required'
132 )
133 ),
134 'storage' => array(
135 'exclude' => 0,
136 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage',
137 'config' => array(
138 'type' => 'select',
139 'items' => array(
140 array('', 0)
141 ),
142 'foreign_table' => 'sys_file_storage',
143 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
144 'size' => 1,
145 'minitems' => 0,
146 'maxitems' => 1
147 )
148 ),
149 'folder' => array(
150 'exclude' => 0,
151 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder',
152 'config' => array(
153 'type' => 'select',
154 'items' => array(),
155 'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
156 )
157 )
158 ),
159 'types' => array(
160 '0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
161 'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
162 'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder')
163 ),
164 'palettes' => array(
165 '1' => array('showitem' => 'hidden, starttime, endtime')
166 )
167 );
168 ?>