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