More work on indexing configurations
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 t3lib_extMgm::addPlugin(Array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
5 if (TYPO3_MODE=='BE') t3lib_extMgm::addModule('tools','isearch','after:log',t3lib_extMgm::extPath($_EXTKEY).'mod/');
6
7 if (TYPO3_MODE=='BE') {
8 t3lib_extMgm::insertModuleFunction(
9 'web_info',
10 'tx_indexedsearch_modfunc1',
11 t3lib_extMgm::extPath($_EXTKEY).'modfunc1/class.tx_indexedsearch_modfunc1.php',
12 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search'
13 );
14 }
15
16 if (TYPO3_MODE=="BE") {
17 t3lib_extMgm::insertModuleFunction(
18 "web_info",
19 "tx_indexedsearch_modfunc2",
20 t3lib_extMgm::extPath($_EXTKEY)."modfunc2/class.tx_indexedsearch_modfunc2.php",
21 "LLL:EXT:indexed_search/locallang.php:mod2_indexed_search"
22 );
23 }
24
25 t3lib_extMgm::allowTableOnStandardPages('index_config');
26 t3lib_extMgm::addLLrefForTCAdescr('index_config','EXT:indexed_search/locallang_csh_indexcfg.xml');
27
28 if (t3lib_extMgm::isLoaded('crawler')) {
29 $TCA['index_config'] = Array (
30 'ctrl' => Array (
31 'title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config',
32 'label' => 'title',
33 'tstamp' => 'tstamp',
34 'crdate' => 'crdate',
35 'cruser_id' => 'cruser_id',
36 'type' => 'type',
37 'default_sortby' => 'ORDER BY crdate',
38 'enablecolumns' => Array (
39 'disabled' => 'hidden',
40 'starttime' => 'starttime',
41 ),
42 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
43 'iconfile' => 'default.gif',
44 ),
45 'feInterface' => Array (
46 'fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions',
47 )
48 );
49 }
50
51
52 // Example of crawlerhook (see also ext_localconf.php!)
53 t3lib_div::loadTCA('index_config');
54 $TCA['index_config']['columns']['type']['config']['items'][] = Array('My Crawler hook!', 'tx_myext_example1');
55 $TCA['index_config']['types']['tx_myext_example1'] = $TCA['index_config']['types']['0'];
56 ?>