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