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