[TASK] Adapt skinning extension stylesheet paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY);
6 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('extbase')) {
7 // Configure the Extbase Plugin
8 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
9 }
10 // Attach to hooks:
11 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'TYPO3\\CMS\\IndexedSearch\\Indexer';
12 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\TypoScriptFrontendHook->headerNoCache';
13 // Register with "crawler" extension:
14 $TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
15 $TYPO3_CONF_VARS['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
16 // Register with TCEmain:
17 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
18 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
19 // Configure default document parsers:
20 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] = array(
21 'pdf' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
22 'doc' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
23 'pps' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
24 'ppt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
25 'xls' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
26 'sxc' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
27 'sxi' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
28 'sxw' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
29 'ods' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
30 'odp' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
31 'odt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
32 'rtf' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
33 'txt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
34 'html' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
35 'htm' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
36 'csv' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
37 'xml' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
38 'jpg' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
39 'jpeg' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
40 'tif' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser'
41 );
42 $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';
43 // unserializing the configuration so we can use it here:
44 $_EXTCONF = unserialize($_EXTCONF);
45 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
46 if (isset($_EXTCONF['enableMetaphoneSearch']) && intval($_EXTCONF['enableMetaphoneSearch']) == 2) {
47 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone'] = '&TYPO3\\CMS\\IndexedSearch\\Utility\\DoubleMetaPhoneUtility';
48 }
49 ?>