-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
18 lines (16 loc) · 781 Bytes
/
ext_tables.php
File metadata and controls
18 lines (16 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
/**
* Extend TCA for direct_mail recipients by adding a custom item to attach own query using hook 'cmd_compileMailGroup'
* HOOK must be registered for direct_mail modules 2 & 3 (2 = dmail, 3 = recipient_list)
*/
$TCA['sys_dmail_group']['columns']['query'] = array(
'label' => 'LLL:EXT:xt_directmail/Resources/Private/Language/locallang.xml:sys_dmail_group.query',
'config' => array(
'type' => 'text',
)
);
// add type item
$TCA['sys_dmail_group']['columns']['type']['config']['items'][] = array('LLL:EXT:xt_directmail/Resources/Private/Language/locallang.xml:sys_dmail_group.type.I.5', '5');
// add type/showitem
$TCA['sys_dmail_group']['types']['5']['showitem'] = 'type,title,description,query';