-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
34 lines (30 loc) · 1010 Bytes
/
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
34
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
//# No cachable plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Fab.doi_system',
'Pi1',
array(
'DoiSystem' => 'output',
),
// non-cacheable actions
array(
'DoiSystem' => 'output',
)
);
// Define whether to automatically load TS.
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['doi_system']);
if (false === isset($configuration['autoload_typoscript']) || true === (bool)$configuration['autoload_typoscript']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'doi_system',
'constants',
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:doi_system/Configuration/TypoScript/constants.txt">'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'doi_system',
'setup',
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:doi_system/Configuration/TypoScript/setup.txt">'
);
}