[TASK] Move config.beLoginLinkIPList to compat7
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility7 / ext_localconf.php
1 <?php
2
3 defined('TYPO3_MODE') or die();
4
5 // Indexed search
6 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')) {
7 // register pibase plugin
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
9 'indexed_search',
10 'setup',
11 trim('
12 plugin.tx_indexedsearch = USER_INT
13 plugin.tx_indexedsearch.userFunc = ' . \TYPO3\CMS\Compatibility7\Controller\SearchFormController::class . '->main
14 ')
15 );
16 // add default rendering for pibase plugin
17 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
18 'indexed_search',
19 'setup',
20 'tt_content.list.20.indexed_search =< plugin.tx_indexedsearch',
21 'defaultContentRendering'
22 );
23 }
24
25 // Content element
26 if (TYPO3_MODE === 'BE') {
27 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
28 '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:compatibility7/Configuration/PageTS/Mod/Wizards/NewContentElementMenu.txt">'
29 );
30 }
31 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('css_styled_content')) {
32 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'compatibility7/Configuration/TypoScript/ContentElement/CssStyledContent/';
33 }
34 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('fluid_styled_content')) {
35 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'compatibility7/Configuration/TypoScript/ContentElement/FluidStyledContent/';
36 // Set alias for deprecated fluid styled content menu viewhelper
37 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\AbstractMenuViewHelper')) {
38 class_alias(
39 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\AbstractMenuViewHelper::class,
40 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\AbstractMenuViewHelper'
41 );
42 }
43 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\CategoriesViewHelper')) {
44 class_alias(
45 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\CategoriesViewHelper::class,
46 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\CategoriesViewHelper'
47 );
48 }
49 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\DirectoryViewHelper')) {
50 class_alias(
51 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\DirectoryViewHelper::class,
52 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\DirectoryViewHelper'
53 );
54 }
55 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\KeywordsViewHelper')) {
56 class_alias(
57 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\KeywordsViewHelper::class,
58 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\KeywordsViewHelper'
59 );
60 }
61 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\ListViewHelper')) {
62 class_alias(
63 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\ListViewHelper::class,
64 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\ListViewHelper'
65 );
66 }
67 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\MenuViewHelperTrait')) {
68 class_alias(
69 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\MenuViewHelperTrait::class,
70 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\MenuViewHelperTrait'
71 );
72 }
73 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\SectionViewHelper')) {
74 class_alias(
75 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\SectionViewHelper::class,
76 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\SectionViewHelper'
77 );
78 }
79 if (!class_exists('TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\UpdatedViewHelper')) {
80 class_alias(
81 \TYPO3\CMS\Compatibility7\ViewHelpers\Menu\UpdatedViewHelper::class,
82 'TYPO3\CMS\FluidStyledContent\ViewHelpers\Menu\UpdatedViewHelper'
83 );
84 }
85 }
86
87 // Enable pages.url_scheme functionality again
88 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typolinkProcessing']['typolinkModifyParameterForPageLinks']['compatibility7_urlscheme']
89 = \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class;
90
91 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['fetchPageId-PostProcessing']['compatibility7_urlscheme']
92 = \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class . '->redirectIfUrlSchemeDoesNotMatch';
93
94 // Enable action `QuickEdit` in page layout controller again
95 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Backend\Controller\PageLayoutController::class]['initActionHook']['compatibility7_quickedit']
96 = \TYPO3\CMS\Compatibility7\Hooks\PageLayoutActionHook::class . '->initAction';
97
98 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Backend\Controller\PageLayoutController::class]['renderActionHook']['compatibility7_quickedit']
99 = \TYPO3\CMS\Compatibility7\Hooks\PageLayoutActionHook::class . '->renderAction';
100
101 // Enable TypoScript functionality config.sys_language_softExclude
102 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess']['compatibility7_softExclude']
103 = \TYPO3\CMS\Compatibility7\Hooks\TcaSoftExcludeHook::class . '->setCustomExcludeFields';
104
105 // Enable TypoScript functionality config.beLoginLinkIPList
106 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['compatibility7_backendloginlink']
107 = \TYPO3\CMS\Compatibility7\Hooks\BackendLoginLinkHook::class . '->renderBackendLoginLink';