forked from WapplerSystems/a21glossary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
33 lines (26 loc) · 1.07 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$extConf = unserialize($_EXTCONF);
// select method of using glossary
switch (strtoupper($extConf['glossaryWHEN'])) {
// fast: this hook is called with the cached page containing int-script elements for uncached subparts
case 'BEFORECACHING':
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all']['tx_a21glossary'] = SveWap\A21glossary\Hooks\FrontendHook::class . '->processHook';
break;
// slow: this one is for the final page containing also the uncached areas
case 'AFTERCACHING':
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']['tx_a21glossary'] = SveWap\A21glossary\Hooks\FrontendHook::class . '->processHook';
break;
// off: do not invoke the glossary engine automatically
default:
case 'OFF';
break;
}
unset($extConf);
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('SveWap.A21glossary', 'Pi1', [
'Glossary' => 'index,search'
], [
'Glossary' => 'search'
]);