[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Configuration / TCA / index_config.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config',
5 'label' => 'title',
6 'descriptionColumn' => 'description',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'type' => 'type',
11 'default_sortby' => 'ORDER BY crdate',
12 'enablecolumns' => array(
13 'disabled' => 'hidden',
14 'starttime' => 'starttime'
15 ),
16 'typeicon_classes' => array(
17 'default' => 'mimetypes-x-index_config'
18 )
19 ),
20 'interface' => array(
21 'showRecordFieldList' => 'hidden,starttime,title,description,type,depth,table2index,alternative_source_pid,get_params,chashcalc,filepath,extensions'
22 ),
23 'columns' => array(
24 'hidden' => array(
25 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
26 'config' => array(
27 'type' => 'check',
28 'default' => '1'
29 )
30 ),
31 'starttime' => array(
32 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
33 'config' => array(
34 'type' => 'input',
35 'size' => '8',
36 'max' => '20',
37 'eval' => 'date',
38 'default' => '0',
39 'checkbox' => '0'
40 )
41 ),
42 'title' => array(
43 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.title',
44 'config' => array(
45 'type' => 'input',
46 'size' => '30',
47 'eval' => 'required'
48 )
49 ),
50 'description' => array(
51 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.description',
52 'config' => array(
53 'type' => 'text',
54 'cols' => '30',
55 'rows' => '2'
56 )
57 ),
58 'type' => array(
59 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type',
60 'config' => array(
61 'type' => 'select',
62 'renderType' => 'selectSingle',
63 'items' => array(
64 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.0', '0'),
65 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.1', '1'),
66 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.2', '2'),
67 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.3', '3'),
68 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.4', '4'),
69 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.5', '5')
70 ),
71 'size' => 1,
72 'maxitems' => 1
73 )
74 ),
75 'depth' => array(
76 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.depth',
77 'config' => array(
78 'type' => 'select',
79 'renderType' => 'selectSingle',
80 'items' => array(
81 array('LLL:EXT:lang/locallang_core.xlf:labels.depth_0', '0'),
82 array('LLL:EXT:lang/locallang_core.xlf:labels.depth_1', '1'),
83 array('LLL:EXT:lang/locallang_core.xlf:labels.depth_2', '2'),
84 array('LLL:EXT:lang/locallang_core.xlf:labels.depth_3', '3'),
85 array('LLL:EXT:lang/locallang_core.xlf:labels.depth_4', '4')
86 ),
87 'size' => 1,
88 'maxitems' => 1
89 )
90 ),
91 'table2index' => array(
92 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.table2index',
93 'config' => array(
94 'type' => 'select',
95 'renderType' => 'selectSingle',
96 'items' => array(
97 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.table2index.I.0', '0')
98 ),
99 'special' => 'tables',
100 'size' => 1,
101 'maxitems' => 1
102 )
103 ),
104 'alternative_source_pid' => array(
105 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.alternative_source_pid',
106 'config' => array(
107 'type' => 'group',
108 'internal_type' => 'db',
109 'allowed' => 'pages',
110 'size' => 1,
111 'minitems' => 0,
112 'maxitems' => 1,
113 'wizards' => array(
114 'suggest' => array(
115 'type' => 'suggest'
116 )
117 )
118 )
119 ),
120 'indexcfgs' => array(
121 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.indexcfgs',
122 'config' => array(
123 'type' => 'group',
124 'internal_type' => 'db',
125 'allowed' => 'index_config,pages',
126 'size' => 5,
127 'minitems' => 0,
128 'maxitems' => 200,
129 'wizards' => array(
130 'suggest' => array(
131 'type' => 'suggest'
132 )
133 )
134 )
135 ),
136 'get_params' => array(
137 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.get_params',
138 'config' => array(
139 'type' => 'input',
140 'size' => '30'
141 )
142 ),
143 'fieldlist' => array(
144 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.fields',
145 'config' => array(
146 'type' => 'input',
147 'size' => '30'
148 )
149 ),
150 'externalUrl' => array(
151 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.externalUrl',
152 'config' => array(
153 'type' => 'input',
154 'size' => '30'
155 )
156 ),
157 'chashcalc' => array(
158 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.chashcalc',
159 'config' => array(
160 'type' => 'check'
161 )
162 ),
163 'filepath' => array(
164 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.filepath',
165 'config' => array(
166 'type' => 'input',
167 'size' => '30'
168 )
169 ),
170 'extensions' => array(
171 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.extensions',
172 'config' => array(
173 'type' => 'input',
174 'size' => '30'
175 )
176 ),
177 'url_deny' => array(
178 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.url_deny',
179 'config' => array(
180 'type' => 'text',
181 'cols' => '30',
182 'rows' => '2'
183 )
184 ),
185 'records_indexonchange' => array(
186 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.records_indexonchange',
187 'config' => array(
188 'type' => 'check',
189 'default' => '0'
190 )
191 ),
192 'timer_next_indexing' => array(
193 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_next_indexing',
194 'config' => array(
195 'type' => 'input',
196 'size' => '12',
197 'eval' => 'datetime',
198 'default' => '0',
199 'checkbox' => '0'
200 )
201 ),
202 'timer_offset' => array(
203 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_offset',
204 'config' => array(
205 'type' => 'input',
206 'size' => '8',
207 'max' => '20',
208 'eval' => 'time',
209 'default' => 3600
210 )
211 ),
212 'timer_frequency' => array(
213 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency',
214 'config' => array(
215 'type' => 'select',
216 'renderType' => 'selectSingle',
217 'items' => array(
218 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.0', '3600'),
219 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.1', '86400'),
220 array('LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.2', '604800')
221 ),
222 'size' => 1,
223 'maxitems' => 1,
224 'default' => 86400
225 )
226 ),
227 'recordsbatch' => array(
228 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.recordsbatch',
229 'config' => array(
230 'type' => 'input',
231 'size' => '8',
232 'max' => '20',
233 'eval' => 'int',
234 'default' => '0',
235 'checkbox' => '0'
236 )
237 ),
238 'set_id' => array(
239 'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.set_id',
240 'config' => array(
241 'type' => 'none'
242 )
243 )
244 ),
245 'types' => array(
246 '0' => array(
247 'showitem' => 'title, --palette--;;1, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type',
248 ),
249 '1' => array(
250 'showitem' => 'title, --palette--;;1, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type, table2index, alternative_source_pid, fieldlist, get_params, chashcalc,recordsbatch,records_indexonchange',
251 ),
252 '2' => array(
253 'showitem' => 'title, --palette--;;1, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type, filepath, extensions, depth',
254 ),
255 '3' => array(
256 'showitem' => 'title, --palette--;;1, timer_next_indexing, timer_offset, timer_frequency, set_id, type, externalUrl, depth, url_deny',
257 ),
258 '4' => array(
259 'showitem' => 'title, --palette--;;1, description, timer_next_indexing, timer_offset, timer_frequency, set_id, type, alternative_source_pid;LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.rootpage, depth',
260 ),
261 '5' => array(
262 'showitem' => 'title, description, type, indexcfgs',
263 ),
264 ),
265 'palettes' => array(
266 '1' => array(
267 'showitem' => 'starttime, hidden',
268 ),
269 ),
270 );