TYPO3 CMS  TYPO3_6-2
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 if (!defined('TYPO3_MODE')) {
3  die('Access denied.');
4 }
6 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
7 // Attach to hooks:
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'TYPO3\\CMS\\IndexedSearch\\Indexer';
9 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\TypoScriptFrontendHook->headerNoCache';
10 // Register with "crawler" extension:
11 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
12 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
13 // Register with TCEmain:
14 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
15 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = '&TYPO3\\CMS\\IndexedSearch\\Hook\\CrawlerHook';
16 // Configure default document parsers:
17 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = array(
18  'pdf' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
19  'doc' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
20  'pps' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
21  'ppt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
22  'xls' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
23  'sxc' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
24  'sxi' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
25  'sxw' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
26  'ods' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
27  'odp' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
28  'odt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
29  'rtf' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
30  'txt' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
31  'html' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
32  'htm' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
33  'csv' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
34  'xml' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
35  'jpg' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
36  'jpeg' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser',
37  'tif' => '&TYPO3\\CMS\\IndexedSearch\\FileContentParser'
38 );
39 $GLOBALS['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';
40 // unserializing the configuration so we can use it here:
41 $_EXTCONF = unserialize($_EXTCONF);
42 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
43 if (isset($_EXTCONF['enableMetaphoneSearch']) && (int)$_EXTCONF['enableMetaphoneSearch'] == 2) {
44  $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['metaphone'] = '&TYPO3\\CMS\\IndexedSearch\\Utility\\DoubleMetaPhoneUtility';
45 }
static addPItoST43($key, $classFile='', $prefix='', $type='list_type', $cached=0)
die
Definition: index.php:6
if(!defined('TYPO3_MODE')) $_EXTCONF
static configurePlugin($extensionName, $pluginName, array $controllerActions, array $nonCacheableControllerActions=array(), $pluginType=self::PLUGIN_TYPE_PLUGIN)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]