-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathext_localconf.php
65 lines (57 loc) · 1.71 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
/**
* Get configuration from extension manager
*/
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['powermail']);
/**
* Enable caching for show action in form controller
*/
$uncachedFormActions = 'form, create, confirmation, optinConfirm';
if ($confArr['enableCaching'] == 1) {
$uncachedFormActions = 'create, confirmation, optinConfirm';
}
/**
* Include Frontend Plugins for Powermail
*/
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Pi1',
array(
'Forms' => 'form, create, confirmation, optinConfirm'
),
array(
'Forms' => $uncachedFormActions
)
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Pi2',
array(
'Output' => 'list, show, edit, update, export, rss'
),
array(
'Output' => 'list, edit, update, export, rss'
)
);
/**
* Hooking for PluginInfo
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_pi1'][$_EXTKEY] =
'EXT:' . $_EXTKEY . '/Classes/Utility/PluginInfo.php:Tx_Powermail_Utility_PluginInfo->getInfo';
/**
* Hooking for first fill of marker field in backend
*/
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
'EXT:' . $_EXTKEY . '/Classes/Utility/InitialMarker.php:Tx_Powermail_Utility_InitialMarker';
/**
* eID to get location from geo coordinates
*/
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['powermailEidGetLocation'] = 'EXT:powermail/Classes/Utility/EidGetLocation.php';
/**
* Extra evaluation of TCA fields
*/
$TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['Tx_Powermail_Utility_EvaluateEmail'] = 'EXT:powermail/Classes/Utility/EvaluateEmail.php';
?>