-
Notifications
You must be signed in to change notification settings - Fork 174
/
ext_localconf.php
144 lines (130 loc) · 5.25 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?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 .= ', checkCreate, create, checkConfirmation, confirmation, optinConfirm, disclaimer';
/**
* Include Frontend Plugins for Powermail
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi1',
[
\In2code\Powermail\Controller\FormController::class =>
'form, checkCreate, create, checkConfirmation, confirmation, optinConfirm, disclaimer'
],
[
\In2code\Powermail\Controller\FormController::class => $uncachedFormActions
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi5',
[
\In2code\Powermail\Controller\FormController::class => 'marketing'
],
[
\In2code\Powermail\Controller\FormController::class => 'marketing'
],
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi2',
[
\In2code\Powermail\Controller\OutputController::class => 'list, show'
],
[
\In2code\Powermail\Controller\OutputController::class => 'list'
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi3',
[
\In2code\Powermail\Controller\OutputController::class => 'edit, update, delete'
],
[
\In2code\Powermail\Controller\OutputController::class => 'edit, update, delete'
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Powermail',
'Pi4',
[
\In2code\Powermail\Controller\OutputController::class => 'list, show, edit, update, delete'
],
[
\In2code\Powermail\Controller\OutputController::class => 'list, edit, update, delete'
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
/**
* 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 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;
/**
* 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;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['powermailPluginUpdater']
= \In2code\Powermail\Update\PowermailPluginUpdater::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['powermailPermissionUpdater']
= \In2code\Powermail\Update\PowermailPermissionUpdater::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['powermailPermissionSubmodulesUpdater']
= \In2code\Powermail\Update\PowermailPermissionSubmoduleUpdater::class;
});