-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
ext_tables.php
executable file
·145 lines (132 loc) · 7.29 KB
/
ext_tables.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
145
<?php
declare(strict_types=1);
defined('TYPO3') || die();
// https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ExtensionArchitecture/BestPractises/ConfigurationFiles.html
(function () {
// Category field disabled by default in backend forms.
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
TCEFORM.tt_content.module_sys_dmail_category.disabled = 1
TCEFORM.tt_address.module_sys_dmail_category.disabled = 1
TCEFORM.fe_users.module_sys_dmail_category.disabled = 1
TCEFORM.sys_dmail_group.select_categories.disabled = 1
');
/**
* Setting up the direct mail module
*/
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_dmail', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_sysdmail.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_dmail_group', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_sysdmailg.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_dmail_category', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_sysdmailcat.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_DirectMailNavFrame_DirectMail', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_DirectMail.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_DirectMailNavFrame_RecipientList', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_RecipientList.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_DirectMailNavFrame_Statistics', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_Statistics.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_DirectMailNavFrame_MailerEngine', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_MailerEngine.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_DirectMailNavFrame_Configuration', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_Configuration.xlf');
//old
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_DirectMailNavFrame', 'EXT:direct_mail/Resources/Private/Language/locallang_csh_web_txdirectmail.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'',
'',
'',
[
'routeTarget' => DirectMailTeam\DirectMail\Module\NavFrameController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangNavFrame.xlf',
],
]
);
// https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/BackendModules/BackendModuleApi/Index.html#without-extbase
// https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5/Deprecation-94094-NavigationFrameModuleInModuleRegistration.html
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'DirectMail',
'bottom',
'',
[
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
'routeTarget' => DirectMailTeam\DirectMail\Module\DmailController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame_DirectMail',
'workspaces' => 'online',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-directmail.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangDirectMail.xlf',
],
]
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'RecipientList',
'bottom',
'',
[
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
'routeTarget' => DirectMailTeam\DirectMail\Module\RecipientListController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame_RecipientList',
'workspaces' => 'online',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-recipient-list.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangRecipientList.xlf',
],
]
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'Statistics',
'bottom',
'',
[
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
'routeTarget' => DirectMailTeam\DirectMail\Module\StatisticsController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame_Statistics',
'workspaces' => 'online',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-statistics.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangStatistics.xlf',
],
]
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'MailerEngine',
'bottom',
'',
[
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
'routeTarget' => DirectMailTeam\DirectMail\Module\MailerEngineController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame_MailerEngine',
'workspaces' => 'online',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-mailer-engine.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangMailerEngine.xlf',
],
]
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'DirectMailNavFrame',
'Configuration',
'bottom',
'',
[
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
'routeTarget' => DirectMailTeam\DirectMail\Module\ConfigurationController::class . '::indexAction',
'access' => 'group,user',
'name' => 'DirectMailNavFrame_Configuration',
'workspaces' => 'online',
'icon' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-configuration.svg',
'labels' => [
'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangConfiguration.xlf',
],
]
);
if (TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('tt_address')) <= TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger('2.3.5')) {
include_once(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('direct_mail') . 'Configuration/TCA/Overrides/tt_address.php');
}
$GLOBALS['TBE_STYLES']['skins']['direct_mail']['stylesheetDirectories'][] = 'EXT:direct_mail/Resources/Public/StyleSheets/';
})();