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