forked from lcapellino/Typo3_Mailman_ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
40 lines (26 loc) · 1.14 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
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'mailmanext',
'Pil',
'Mailman Mailinglists',
'EXT:mailmanext/ext_icon.png'
);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['mailmanext_pil'] = 'select_key,pages,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['mailmanext_pil'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'mailmanext_pil',
'FILE:EXT:mailmanext/Configuration/FlexForms/pil.xml'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mailmanext/Configuration/TSconfig/ContentElementWizard.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'mailmanext',
'Configuration/TypoScript',
'Mailman Extension'
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext_icon',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:mailmanext/ext_icon.png']
);