forked from in2code-de/powermail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
114 lines (102 loc) · 4.05 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
112
113
114
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(function () {
/**
* Enable caching for show action in form controller
*/
$uncachedFormActions = 'form';
if (\In2code\Powermail\Utility\ConfigurationUtility::isEnableCachingActive()) {
$uncachedFormActions = '';
}
$uncachedFormActions .= ', create, confirmation, optinConfirm, marketing, disclaimer';
/**
* Include Frontend Plugins for Powermail
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi1',
[
\In2code\Powermail\Controller\FormController::class =>
'form, create, confirmation, optinConfirm, marketing, disclaimer'
],
[
\In2code\Powermail\Controller\FormController::class => $uncachedFormActions
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi2',
[
\In2code\Powermail\Controller\OutputController::class => 'list, show, edit, update, export, rss, delete'
],
[
\In2code\Powermail\Controller\OutputController::class => 'list, edit, update, export, rss, delete'
]
);
/**
* ContentElementWizard for Pi1
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:powermail/Configuration/TSConfig/ContentElementWizard.typoscript\''
);
/**
* PageTSConfig for backend mod list
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:powermail/Configuration/TSConfig/WebList.typoscript\''
);
/**
* Hook to show PluginInformation under a tt_content element in page module of type powermail
*/
$cmsLayout = 'cms/layout/class.tx_cms_layout.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$cmsLayout]['tt_content_drawItem']['powermail'] =
\In2code\Powermail\Hook\PluginPreview::class;
/**
* Hook for initially filling the marker field in backend
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
\In2code\Powermail\Hook\CreateMarker::class;
/**
* Hook to extend the FlexForm
*/
$ffTools = \TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$ffTools]['flexParsing']['powermail'] =
In2code\Powermail\Hook\FlexFormManipulationHook::class;
/**
* JavaScript evaluation of TCA fields
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['\In2code\Powermail\Tca\EvaluateEmail'] =
'EXT:powermail/Classes/Tca/EvaluateEmail.php';
/**
* eID to get location from geo coordinates
*/
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['powermailEidGetLocation'] =
\In2code\Powermail\Eid\GetLocationEid::class . '::main';
/**
* User field registrations in TCA/FlexForm
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1580037906] = [
'nodeName' => 'powermailShowFormNoteIfNoEmailOrNameSelected',
'priority' => 50,
'class' => \In2code\Powermail\Tca\ShowFormNoteIfNoEmailOrNameSelected::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1580039839] = [
'nodeName' => 'powermailMarker',
'priority' => 50,
'class' => \In2code\Powermail\Tca\Marker::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1580065317] = [
'nodeName' => 'powermailShowFormNoteEditForm',
'priority' => 50,
'class' => \In2code\Powermail\Tca\ShowFormNoteEditForm::class,
];
/**
* Update Wizards
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['powermailRelationUpdateWizard']
= \In2code\Powermail\Update\PowermailRelationUpdateWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['powermailLanguageUpdateWizard']
= \In2code\Powermail\Update\PowermailLanguageUpdateWizard::class;
});