-
Notifications
You must be signed in to change notification settings - Fork 8
/
ext_localconf.php
51 lines (40 loc) · 2.47 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
<?php
defined('TYPO3') or die();
call_user_func(function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:translatelabels/Configuration/TSconfig/page.tsconfig'"
);
// Register hook after all fe generation, i.e. after inclusion of uncached user_int objects
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] =
\Sitegeist\Translatelabels\Hooks\TypoScriptFrontendController::class . '->contentPostProcAll';
// override f: namespace for fluid to override f:translate
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['f'][] = 'Sitegeist\\Translatelabels\\ViewHelpers';
// override formvh: namespace for fluid to override f:translate
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'Sitegeist\\Translatelabels\\ViewHelpers';
// override fc: namespace for fluid_components to override fc:form.translatedValidationResults
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fc'][] = 'Sitegeist\\Translatelabels\\ViewHelpers\\FluidComponents';
// xclass TYPO3\CMS\Frontend\Plugin\AbstractPlugin to extend method pi_getLL
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\Plugin\\AbstractPlugin'] = array(
'className' => 'Sitegeist\\Translatelabels\\Plugin\\FrontendLoginController'
);
// xclass TYPO3\CMS\Frontend\Plugin\AbstractPlugin to extend method pi_getLL
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController'] = array(
'className' => 'Sitegeist\\Translatelabels\\Plugin\\FrontendLoginController'
);
// Admin Panel Integration
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']['translatelabels'] = [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabelModule::class,
'after' => ['debug'],
'submodules' => [
'translatelabel' => [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabel\TranslateLabel::class,
],
'info' => [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabel\TranslateLabelInfo::class,
'after' => ['translatelabel']
]
]
];
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['translatelabels_translate']
= \Sitegeist\Translatelabels\Controller\AjaxController::class . '::saveDataAction';
});