[TASK] Raise submodule pointer
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / SysCollection.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_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 'rootLevel' => -1,
18 'searchFields' => 'title,description',
19 'typeicon_column' => 'type',
20 'typeicon_classes' => array(
21 'default' => 'apps-clipboard-list',
22 'static' => 'apps-clipboard-list',
23 'filter' => 'actions-system-tree-search-open'
24 ),
25 'enablecolumns' => array(
26 'disabled' => 'hidden',
27 'starttime' => 'starttime',
28 'endtime' => 'endtime',
29 'fe_group' => 'fe_group'
30 ),
31 ),
32 'interface' => array(
33 'showRecordFieldList' => 'title, description, table_name, items'
34 ),
35 'columns' => array(
36 't3ver_label' => array(
37 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
38 'config' => array(
39 'type' => 'input',
40 'size' => '30',
41 'max' => '30'
42 )
43 ),
44 'sys_language_uid' => array(
45 'exclude' => 1,
46 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
47 'config' => array(
48 'type' => 'select',
49 'foreign_table' => 'sys_language',
50 'foreign_table_where' => 'ORDER BY sys_language.title',
51 'items' => array(
52 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
53 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
54 )
55 )
56 ),
57 'l10n_parent' => array(
58 'displayCond' => 'FIELD:sys_language_uid:>:0',
59 'exclude' => 1,
60 'label' => 'LLL:EXT:lang/locallang_general.xml: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 )
74 ),
75 'hidden' => array(
76 'exclude' => 1,
77 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
78 'config' => array(
79 'type' => 'check',
80 'default' => '0'
81 )
82 ),
83 'starttime' => array(
84 'exclude' => 1,
85 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
86 'config' => array(
87 'type' => 'input',
88 'size' => '8',
89 'max' => '20',
90 'eval' => 'date',
91 'default' => '0',
92 'checkbox' => '0'
93 )
94 ),
95 'endtime' => array(
96 'exclude' => 1,
97 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
98 'config' => array(
99 'type' => 'input',
100 'size' => '8',
101 'max' => '20',
102 'eval' => 'date',
103 'checkbox' => '0',
104 'default' => '0',
105 'range' => array(
106 'upper' => mktime(3, 14, 7, 1, 19, 2038),
107 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
108 )
109 )
110 ),
111 'fe_group' => array(
112 'exclude' => 1,
113 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
114 'config' => array(
115 'type' => 'select',
116 'items' => array(
117 array('', 0),
118 array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
119 array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
120 array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
121 ),
122 'foreign_table' => 'fe_groups'
123 )
124 ),
125 'table_name' => array(
126 'exclude' => 0,
127 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.table_name',
128 'config' => array(
129 'type' => 'select',
130 'special' => 'tables'
131 )
132 ),
133 'items' => array(
134 'exclude' => 0,
135 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.items',
136 'config' => array(
137 'type' => 'group',
138 'internal_type' => 'db',
139 'prepend_tname' => TRUE,
140 'allowed' => '*',
141 'MM' => 'sys_collection_entries',
142 'MM_hasUidField' => TRUE,
143 'multiple' => TRUE
144 )
145 ),
146 'title' => array(
147 'exclude' => 0,
148 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.title',
149 'config' => array(
150 'type' => 'input',
151 'size' => '60',
152 'eval' => 'required'
153 )
154 ),
155 'description' => array(
156 'exclude' => 0,
157 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.description',
158 'config' => array(
159 'type' => 'text',
160 'cols' => '60',
161 'rows' => '5'
162 )
163 ),
164 'type' => array(
165 'exclude' => 0,
166 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.type',
167 'config' => array(
168 'type' => 'select',
169 'items' => array(
170 array('LLL:EXT:lang/locallang_tca.xlf:sys_collection.type.static', 'static')
171 ),
172 'default' => 'static'
173 )
174 )
175 ),
176 'types' => array(
177 'static' => array('showitem' => 'title;;1,type, description,table_name, items')
178 ),
179 'palettes' => array(
180 '1' => array('showitem' => 'starttime, endtime, fe_group, sys_language_uid, l10n_parent, l10n_diffsource, hidden')
181 )
182 );
183 ?>