Revert "[FEATURE] Indexed Search: add mySQL fulltext support"
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 t3lib_extMgm::addPItoST43($_EXTKEY);
5
6 t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
7 tt_content.CSS_editor.ch.tx_indexedsearch = < plugin.tx_indexedsearch.CSS_editor
8 ',43);
9
10 // Attach to hooks:
11 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'EXT:indexed_search/class.indexer.php:tx_indexedsearch_indexer';
12 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = 'EXT:indexed_search/hooks/class.tx_indexedsearch_tslib_fe_hook.php:&tx_indexedsearch_tslib_fe_hook->headerNoCache';
13
14 // Register with "crawler" extension:
15 $TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
16 $TYPO3_CONF_VARS['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
17
18 // Register with TCEmain:
19 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
20 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
21
22 // Configure default document parsers:
23 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] = array(
24 'pdf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
25 'doc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
26 'pps' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
27 'ppt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
28 'xls' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
29 'sxc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
30 'sxi' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
31 'sxw' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
32 'ods' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
33 'odp' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
34 'odt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
35 'rtf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
36 'txt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
37 'html' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
38 'htm' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
39 'csv' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
40 'xml' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
41 'jpg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
42 'jpeg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
43 'tif' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
44 );
45
46
47 // EXAMPLE configuration of hooks:
48 /*
49 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'] = array (
50 'initialize_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
51 'getResultRows' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
52 'printResultRow' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
53 'prepareResultRowTemplateData_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
54 );
55 */
56
57 // EXAMPLE of adding fields to root line:
58 #$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['addRootLineFields']['level3'] = 3;
59
60
61 // Example of crawlerhook (see also ext_tables.php!)
62 /*
63 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['crawler']['tx_myext_example1'] = 'EXT:indexed_search/example/class.crawlerhook.php:&tx_indexedsearch_crawlerhook';
64 */
65 ?>