[TASK] Replace Space Indent into Tab indent (CGL Cleanup)
[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 if (t3lib_extMgm::isLoaded('extbase')) {
7 // Configure the Extbase Plugin
8 Tx_Extbase_Utility_Extension::configurePlugin(
9 $_EXTKEY, 'Pi2',
10 // array holding the controller-action-combinations that are accessible
11 array('Search' => 'form,search'),
12 // array of non-cachable controller-action-combinations (they must already be enabled above)
13 array('Search' => 'form,search')
14 );
15 }
16
17 // Attach to hooks:
18 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'EXT:indexed_search/class.indexer.php:tx_indexedsearch_indexer';
19 $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';
20
21 // Register with "crawler" extension:
22 $TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
23 $TYPO3_CONF_VARS['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
24
25 // Register with TCEmain:
26 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
27 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
28
29 // Configure default document parsers:
30 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] = array(
31 'pdf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
32 'doc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
33 'pps' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
34 'ppt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
35 'xls' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
36 'sxc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
37 'sxi' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
38 'sxw' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
39 'ods' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
40 'odp' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
41 'odt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
42 'rtf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
43 'txt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
44 'html' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
45 'htm' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
46 'csv' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
47 'xml' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
48 'jpg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
49 'jpeg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
50 'tif' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
51 );
52
53 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['use_tables'] = 'index_phash,index_fulltext,index_rel,index_words,index_section,index_grlist,index_stat_search,index_stat_word,index_debug,index_config';
54
55 // unserializing the configuration so we can use it here:
56 $_EXTCONF = unserialize($_EXTCONF);
57
58 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
59 if (isset($_EXTCONF['enableMetaphoneSearch']) && intval($_EXTCONF['enableMetaphoneSearch'])==2) {
60 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone'] = 'EXT:indexed_search/class.doublemetaphone.php:&user_DoubleMetaPhone';
61 }
62
63
64
65
66
67 // EXAMPLE configuration of hooks:
68 /*
69 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'] = array (
70 'initialize_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
71 'getResultRows' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
72 'printResultRow' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
73 'prepareResultRowTemplateData_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
74 );
75 */
76
77 // EXAMPLE of adding fields to root line:
78 #$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['addRootLineFields']['level3'] = 3;
79
80
81 // Example of crawlerhook (see also ext_tables.php!)
82 /*
83 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['crawler']['tx_myext_example1'] = 'EXT:indexed_search/example/class.crawlerhook.php:&tx_indexedsearch_crawlerhook';
84 */
85 ?>