b0a9d2864ec8511b7ec86fbc2ce27c4f918394d4
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_collection.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.xlf: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.xlf:LGL.language',
47 'config' => array(
48 'type' => 'select',
49 'renderType' => 'selectSingle',
50 'foreign_table' => 'sys_language',
51 'foreign_table_where' => 'ORDER BY sys_language.title',
52 'items' => array(
53 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
54 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
55 ),
56 'default' => 0,
57 'showIconTable' => true,
58 )
59 ),
60 'l10n_parent' => array(
61 'displayCond' => 'FIELD:sys_language_uid:>:0',
62 'exclude' => 1,
63 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
64 'config' => array(
65 'type' => 'select',
66 'renderType' => 'selectSingle',
67 'items' => array(
68 array('', 0)
69 ),
70 'foreign_table' => 'sys_file_collection',
71 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
72 )
73 ),
74 'l10n_diffsource' => array(
75 'config' => array(
76 'type' => 'passthrough',
77 'default' => ''
78 )
79 ),
80 'hidden' => array(
81 'exclude' => 1,
82 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
83 'config' => array(
84 'type' => 'check',
85 'default' => '0'
86 )
87 ),
88 'starttime' => array(
89 'exclude' => 1,
90 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
91 'config' => array(
92 'type' => 'input',
93 'size' => '8',
94 'max' => '20',
95 'eval' => 'date',
96 'default' => '0',
97 )
98 ),
99 'endtime' => array(
100 'exclude' => 1,
101 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
102 'config' => array(
103 'type' => 'input',
104 'size' => '8',
105 'max' => '20',
106 'eval' => 'date',
107 'default' => '0',
108 'range' => array(
109 'upper' => mktime(0, 0, 0, 1, 1, 2038),
110 )
111 )
112 ),
113 'fe_group' => array(
114 'exclude' => 1,
115 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
116 'config' => array(
117 'type' => 'select',
118 'renderType' => 'selectSingle',
119 'items' => array(
120 array('', 0),
121 array('LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login', -1),
122 array('LLL:EXT:lang/locallang_general.xlf:LGL.any_login', -2),
123 array('LLL:EXT:lang/locallang_general.xlf:LGL.usergroups', '--div--')
124 ),
125 'foreign_table' => 'fe_groups'
126 )
127 ),
128 'table_name' => array(
129 'exclude' => 0,
130 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.table_name',
131 'config' => array(
132 'type' => 'select',
133 'renderType' => 'selectSingle',
134 'special' => 'tables'
135 )
136 ),
137 'items' => array(
138 'exclude' => 0,
139 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.items',
140 'config' => array(
141 'type' => 'group',
142 'internal_type' => 'db',
143 'prepend_tname' => true,
144 'allowed' => '*',
145 'MM' => 'sys_collection_entries',
146 'MM_hasUidField' => true,
147 'multiple' => true,
148 'size' => 5
149 )
150 ),
151 'title' => array(
152 'exclude' => 0,
153 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.title',
154 'config' => array(
155 'type' => 'input',
156 'size' => '60',
157 'eval' => 'required'
158 )
159 ),
160 'description' => array(
161 'exclude' => 0,
162 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.description',
163 'config' => array(
164 'type' => 'text',
165 'cols' => '60',
166 'rows' => '5'
167 )
168 ),
169 'type' => array(
170 'exclude' => 0,
171 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.type',
172 'config' => array(
173 'type' => 'select',
174 'renderType' => 'selectSingle',
175 'items' => array(
176 array('LLL:EXT:lang/locallang_tca.xlf:sys_collection.type.static', 'static')
177 ),
178 'default' => 'static'
179 )
180 )
181 ),
182 'types' => array(
183 'static' => array(
184 'showitem' => 'title, --palette--;;1, type, description,table_name, items',
185 ),
186 ),
187 'palettes' => array(
188 '1' => array('showitem' => 'starttime, endtime, fe_group, sys_language_uid, l10n_parent, l10n_diffsource, hidden')
189 )
190 );