forked from YourDevTeamGlobal/frontend_user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
46 lines (37 loc) · 1.83 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
<?php
declare(strict_types=1);
/**
* Frontend User Extension
*
* @copyright Copyright (c) 2022 Your Dev Team Global (https://ydt-global.com/)
* @author YDT Global Team <[email protected]>
*/
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use Ydt\FrontendUser\Controller\FrontendUserController;
use Ydt\FrontendUser\Property\TypeConverter\UploadedFileReferenceConverter;
defined('TYPO3') or die();
(function () {
ExtensionManagementUtility::addTypoScriptConstants(
"@import 'EXT:frontend_user/Configuration/TypoScript/constants.typoscript'"
);
ExtensionManagementUtility::addTypoScriptSetup(
"@import 'EXT:frontend_user/Configuration/TypoScript/setup.typoscript'"
);
ExtensionUtility::configurePlugin(
'FrontendUser',
'Form',
[FrontendUserController::class => 'new, edit, create, update, delete, deleteImage'],
[FrontendUserController::class => 'new, edit, create, update, delete, deleteImage'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:frontend_user/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['ydt'] = ['Ydt\FrontendUser\ViewHelpers'];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:core/Resources/Private/Language/locallang_general.xlf'][]
= 'EXT:frontend_user/Resources/Private/Language/locallang_be.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:core/Resources/Private/Language/locallang_general.xlf'][]
= 'EXT:frontend_user/Resources/Private/Language/de.locallang_be.xlf';
ExtensionUtility::registerTypeConverter(UploadedFileReferenceConverter::class);
})();