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