-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
executable file
·66 lines (55 loc) · 2.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
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use Cylancer\CySendMails\Controller\MessageFormController;
use Cylancer\CySendMails\Upgrades\SendMessagesMigrationWizard;
/**
*
* This file is part of the "cy_send_mails" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2024 C. Gogolin <[email protected]>
*
*/
defined('TYPO3') || die('Access denied.');
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CySendMails',
'MessageForm',
[
MessageFormController::class => 'show, send'
],
// non-cacheable actions
[
MessageFormController::class => 'show, send'
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('mod {
wizards.newContentElement.wizardItems.plugins {
elements {
messageform {
iconIdentifier = cysendmails-plugin-messageform
title = LLL:EXT:cy_send_mails/Resources/Private/Language/locallang_be_messageForm.xlf:plugin.name
description = LLL:EXT:cy_send_mails/Resources/Private/Language/locallang_be_messageForm.xlf:plugin.description
tt_content_defValues {
CType = list
list_type = cysendmails_messageform
}
}
}
show = *
}
}');
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon('cysendmails-plugin-messageform', SvgIconProvider::class, [
'source' => 'EXT:cy_send_mails/Resources/Public/Icons/plugin_messageForm.svg'
]);
});
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['cynewsletter_sendMessagesMigrationWizard'] = SendMessagesMigrationWizard::class;
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['templateRootPaths']['cy_send_mails'] = 'EXT:cy_send_mails/Resources/Private/Templates/MessageMail/';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths']['cy_send_mails'] = 'EXT:cy_send_mails/Resources/Private/Layouts/MessageMail/';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['partialRootPaths']['cy_send_mails'] = 'EXT:cy_send_mails/Resources/Private/Partials/MessageMail/';