forked from in2code-de/powermail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
102 lines (90 loc) · 3.5 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
<?php
if (!defined('TYPO3_MODE')) {
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';
/**
* Include Frontend Plugins for Powermail
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'In2code.powermail',
'Pi1',
[
'Form' => 'form, create, confirmation, optinConfirm, marketing'
],
[
'Form' => $uncachedFormActions
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'In2code.powermail',
'Pi2',
[
'Output' => 'list, show, edit, update, export, rss, delete'
],
[
'Output' => 'list, edit, update, export, rss, delete'
]
);
/**
* 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'] =
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('powermail') .
'Classes/Hook/PluginPreview.php:In2code\Powermail\Hooks\PluginPreview';
/**
* Hook for initially filling the marker field in backend
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
'EXT:powermail/Classes/Hook/CreateMarker.php:In2code\Powermail\Hook\CreateMarker';
/**
* Hook to extend the FlexForm
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'][] =
'EXT:powermail/Classes/Hook/FlexFormManipulationHook.php:In2code\Powermail\Hook\FlexFormManipulationHook';
/**
* Hook to extend the FlexForm since core version 8.5
*/
$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
*/
$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'] =
'EXT:powermail/Classes/Eid/GetLocationEid.php';
/**
* eID to store marketing information
*/
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['powermailEidMarketing'] =
'EXT:powermail/Classes/Eid/MarketingEid.php';
/**
* CommandController for powermail tasks
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] =
\In2code\Powermail\Command\TaskCommandController::class;
/**
* SignalSlot to convert old tablenames to new tablenames automaticly after installing
*/
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
'afterExtensionInstall',
\In2code\Powermail\Slot\ConvertTableNames::class,
'convert'
);
});