-
Notifications
You must be signed in to change notification settings - Fork 8
/
ext_tables.php
44 lines (42 loc) · 1.3 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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(function () {
/**
* Include Static TypoScript
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'powermailextended',
'Configuration/TypoScript',
'Powermail Addition (after Powermail Template)'
);
/**
* Extend powermail fields tx_powermail_domain_model_field
*/
$tempColumns = [
'tx_powermailextended_powermail_text' => [
'exclude' => 1,
'label' => 'Text before field',
'config' => [
'type' => 'text',
'cols' => '32',
'rows' => '2'
]
],
'tx_powermailextended_powermail_readonly' => [
'exclude' => 1,
'label' => 'Readonly',
'config' => [
'type' => 'check'
]
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_powermail_domain_model_field', $tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_powermail_domain_model_field',
'--div--;Powermailextended, tx_powermailextended_powermail_text, tx_powermailextended_powermail_readonly',
'',
'after:own_marker_select'
);
});