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