TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ext_localconf.php
Go to the documentation of this file.
1
<?php
2
if
(!defined(
'TYPO3_MODE'
)) {
3
die
(
'Access denied.'
);
4
}
5
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43
($_EXTKEY);
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
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addPItoST43
static addPItoST43($key, $classFile='', $prefix='', $type='list_type', $cached=0)
Definition:
ExtensionManagementUtility.php:1358
die
die
Definition:
index.php:6
$_EXTCONF
if(!defined('TYPO3_MODE')) $_EXTCONF
Definition:
ext_localconf.php:6
TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin
static configurePlugin($extensionName, $pluginName, array $controllerActions, array $nonCacheableControllerActions=array(), $pluginType=self::PLUGIN_TYPE_PLUGIN)
Definition:
ExtensionUtility.php:44
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
typo3
sysext
indexed_search
ext_localconf.php
Generated on Wed Aug 7 2019 09:52:19 for TYPO3 CMS by
1.8.13