[!!!][FEATURE] Add showIconTable option for selectSingle fields
[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 'checkbox' => '0'
98 )
99 ),
100 'endtime' => array(
101 'exclude' => 1,
102 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
103 'config' => array(
104 'type' => 'input',
105 'size' => '8',
106 'max' => '20',
107 'eval' => 'date',
108 'checkbox' => '0',
109 'default' => '0',
110 'range' => array(
111 'upper' => mktime(0, 0, 0, 1, 1, 2038),
112 )
113 )
114 ),
115 'fe_group' => array(
116 'exclude' => 1,
117 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
118 'config' => array(
119 'type' => 'select',
120 'renderType' => 'selectSingle',
121 'items' => array(
122 array('', 0),
123 array('LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login', -1),
124 array('LLL:EXT:lang/locallang_general.xlf:LGL.any_login', -2),
125 array('LLL:EXT:lang/locallang_general.xlf:LGL.usergroups', '--div--')
126 ),
127 'foreign_table' => 'fe_groups'
128 )
129 ),
130 'table_name' => array(
131 'exclude' => 0,
132 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.table_name',
133 'config' => array(
134 'type' => 'select',
135 'renderType' => 'selectSingle',
136 'special' => 'tables'
137 )
138 ),
139 'items' => array(
140 'exclude' => 0,
141 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.items',
142 'config' => array(
143 'type' => 'group',
144 'internal_type' => 'db',
145 'prepend_tname' => true,
146 'allowed' => '*',
147 'MM' => 'sys_collection_entries',
148 'MM_hasUidField' => true,
149 'multiple' => true,
150 'size' => 5
151 )
152 ),
153 'title' => array(
154 'exclude' => 0,
155 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.title',
156 'config' => array(
157 'type' => 'input',
158 'size' => '60',
159 'eval' => 'required'
160 )
161 ),
162 'description' => array(
163 'exclude' => 0,
164 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.description',
165 'config' => array(
166 'type' => 'text',
167 'cols' => '60',
168 'rows' => '5'
169 )
170 ),
171 'type' => array(
172 'exclude' => 0,
173 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.type',
174 'config' => array(
175 'type' => 'select',
176 'renderType' => 'selectSingle',
177 'items' => array(
178 array('LLL:EXT:lang/locallang_tca.xlf:sys_collection.type.static', 'static')
179 ),
180 'default' => 'static'
181 )
182 )
183 ),
184 'types' => array(
185 'static' => array(
186 'showitem' => 'title, --palette--;;1, type, description,table_name, items',
187 ),
188 ),
189 'palettes' => array(
190 '1' => array('showitem' => 'starttime, endtime, fe_group, sys_language_uid, l10n_parent, l10n_diffsource, hidden')
191 )
192 );