Indexed Search modifications for support of cronjob based indexing. More to come...
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / tca.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 $TCA['index_config'] = Array (
5 'ctrl' => $TCA['index_config']['ctrl'],
6 'interface' => Array (
7 'showRecordFieldList' => 'hidden,starttime,title,description,type,depth,table2index,alternative_source_pid,get_params,chashcalc,filepath,extensions'
8 ),
9 'feInterface' => $TCA['index_config']['feInterface'],
10 'columns' => Array (
11 'hidden' => Array (
12 'label' => 'Disable',
13 'config' => Array (
14 'type' => 'check',
15 'default' => '0'
16 )
17 ),
18 'starttime' => Array (
19 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
20 'config' => Array (
21 'type' => 'input',
22 'size' => '8',
23 'max' => '20',
24 'eval' => 'date',
25 'default' => '0',
26 'checkbox' => '0'
27 )
28 ),
29 'title' => Array (
30 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.title',
31 'config' => Array (
32 'type' => 'input',
33 'size' => '30',
34 'eval' => 'required',
35 )
36 ),
37 'description' => Array (
38 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.description',
39 'config' => Array (
40 'type' => 'text',
41 'cols' => '30',
42 'rows' => '2',
43 )
44 ),
45 'type' => Array (
46 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.type',
47 'config' => Array (
48 'type' => 'select',
49 'items' => Array (
50 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.0', '0'),
51 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.1', '1'),
52 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.2', '2'),
53 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.type.I.3', '3'),
54 ),
55 'size' => 1,
56 'maxitems' => 1,
57 )
58 ),
59 'depth' => Array (
60 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.depth',
61 'config' => Array (
62 'type' => 'select',
63 'items' => Array (
64 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.0', '0'),
65 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.1', '1'),
66 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.2', '2'),
67 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.depth.I.3', '3'),
68 ),
69 'size' => 1,
70 'maxitems' => 1,
71 )
72 ),
73 'table2index' => Array (
74 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.table2index',
75 'config' => Array (
76 'type' => 'select',
77 'items' => Array (
78 Array('LLL:EXT:indexed_search/locallang_db.php:index_config.table2index.I.0', '0'),
79 ),
80 'special' => 'tables',
81 'size' => 1,
82 'maxitems' => 1,
83 )
84 ),
85 'alternative_source_pid' => Array (
86 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.alternative_source_pid',
87 'config' => Array (
88 'type' => 'group',
89 'internal_type' => 'db',
90 'allowed' => 'pages',
91 'size' => 1,
92 'minitems' => 0,
93 'maxitems' => 1,
94 )
95 ),
96 'get_params' => Array (
97 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.get_params',
98 'config' => Array (
99 'type' => 'input',
100 'size' => '30',
101 )
102 ),
103 'fieldlist' => Array (
104 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.fields',
105 'config' => Array (
106 'type' => 'input',
107 'size' => '30',
108 )
109 ),
110 'externalUrl' => Array (
111 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.externalUrl',
112 'config' => Array (
113 'type' => 'input',
114 'size' => '30',
115 )
116 ),
117 'chashcalc' => Array (
118 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.chashcalc',
119 'config' => Array (
120 'type' => 'check',
121 )
122 ),
123 'filepath' => Array (
124 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.filepath',
125 'config' => Array (
126 'type' => 'input',
127 'size' => '30',
128 )
129 ),
130 'extensions' => Array (
131 'label' => 'LLL:EXT:indexed_search/locallang_db.php:index_config.extensions',
132 'config' => Array (
133 'type' => 'input',
134 'size' => '30',
135 )
136 ),
137 ),
138 'types' => Array (
139 '0' => Array('showitem' => 'title;;1;;2-2-2, description, type'),
140 '1' => Array('showitem' => 'title;;1;;2-2-2, description, type;;;;3-3-3, table2index;;;;3-3-3, alternative_source_pid, fieldlist, get_params, chashcalc'),
141 '2' => Array('showitem' => 'title;;1;;2-2-2, description, type;;;;3-3-3, filepath;;;;3-3-3, extensions, depth'),
142 '3' => Array('showitem' => 'title;;1;;2-2-2, description, type;;;;3-3-3, externalUrl;;;;3-3-3, depth'),
143 ),
144 'palettes' => Array (
145 '1' => Array('showitem' => 'starttime,hidden')
146 )
147 );
148 ?>