-
Notifications
You must be signed in to change notification settings - Fork 5
/
ext_localconf.php
111 lines (101 loc) · 5.61 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
defined('TYPO3_MODE') or die();
// Indexed search
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')) {
// register pibase plugin
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'indexed_search',
'setup',
trim('
plugin.tx_indexedsearch = USER_INT
plugin.tx_indexedsearch.userFunc = ' . \TYPO3\CMS\Compatibility7\Controller\SearchFormController::class . '->main
')
);
// add default rendering for pibase plugin
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'indexed_search',
'setup',
'tt_content.list.20.indexed_search =< plugin.tx_indexedsearch',
'defaultContentRendering'
);
}
// Content element
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:compatibility7/Configuration/PageTS/Mod/Wizards/NewContentElementMenu.txt">'
);
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('css_styled_content')) {
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'compatibility7/Configuration/TypoScript/ContentElement/CssStyledContent/';
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('fluid_styled_content')) {
$GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'compatibility7/Configuration/TypoScript/ContentElement/FluidStyledContent/';
// Set alias for deprecated fluid styled content menu viewhelper
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\AbstractMenuViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\AbstractMenuViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\AbstractMenuViewHelper'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\CategoriesViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\CategoriesViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\CategoriesViewHelper'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\DirectoryViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\DirectoryViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\DirectoryViewHelper'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\KeywordsViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\KeywordsViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\KeywordsViewHelper'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\ListViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\ListViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\ListViewHelper'
);
}
if (!trait_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\MenuViewHelperTrait')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\MenuViewHelperTrait::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\MenuViewHelperTrait'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\SectionViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\SectionViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\SectionViewHelper'
);
}
if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\UpdatedViewHelper')) {
class_alias(
\TYPO3\CMS\Compatibility7\ViewHelpers\Menu\UpdatedViewHelper::class,
'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\UpdatedViewHelper'
);
}
}
// Enable pages.url_scheme functionality again
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typolinkProcessing']['typolinkModifyParameterForPageLinks']['compatibility7_urlscheme']
= \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['fetchPageId-PostProcessing']['compatibility7_urlscheme']
= \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class . '->redirectIfUrlSchemeDoesNotMatch';
// Enable action `QuickEdit` in page layout controller again
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Backend\Controller\PageLayoutController::class]['initActionHook']['compatibility7_quickedit']
= \TYPO3\CMS\Compatibility7\Hooks\PageLayoutActionHook::class . '->initAction';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Backend\Controller\PageLayoutController::class]['renderActionHook']['compatibility7_quickedit']
= \TYPO3\CMS\Compatibility7\Hooks\PageLayoutActionHook::class . '->renderAction';
// Enable TypoScript functionality config.sys_language_softExclude
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess']['compatibility7_softExclude']
= \TYPO3\CMS\Compatibility7\Hooks\TcaSoftExcludeHook::class . '->setCustomExcludeFields';
// Enable TypoScript functionality config.beLoginLinkIPList
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['compatibility7_backendloginlink']
= \TYPO3\CMS\Compatibility7\Hooks\BackendLoginLinkHook::class . '->renderBackendLoginLink';
// Call MonitorUtility peakMemoryUsage
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['compatibility7_monitorutility']
= \TYPO3\CMS\Compatibility7\Utility\MonitorUtility::class . '->monitorUtilityFrontendHook';