55ff88ab4a20210b8905e8fbf6dcdc391e71393e
[TYPO3CMS/Extensions/powermailCond.git] / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 // Fieldlisting in Backend
7 if (TYPO3_MODE == 'BE') {
8 include_once(t3lib_extMgm::extPath('powermail_cond') . 'Classes/Utility/FieldlistingBackend.php');
9 }
10
11 // Add TypoScript Static Template
12 t3lib_extMgm::addStaticFile($_EXTKEY, 'files/static/', 'Main TypoScript');
13
14 // Configuration for Conditions
15 t3lib_extMgm::addLLrefForTCAdescr('tx_powermail_domain_model_forms', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml');
16 t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_conditions');
17 $TCA['tx_powermailcond_conditions'] = array (
18 'ctrl' => array (
19 'title' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions',
20 'label' => 'title',
21 'tstamp' => 'tstamp',
22 'crdate' => 'crdate',
23 'cruser_id' => 'cruser_id',
24 'languageField' => 'sys_language_uid',
25 'transOrigPointerField' => 'l18n_parent',
26 'transOrigDiffSourceField' => 'l18n_diffsource',
27 'sortby' => 'sorting',
28 'delete' => 'deleted',
29 'enablecolumns' => array (
30 'disabled' => 'hidden',
31 'starttime' => 'starttime',
32 'endtime' => 'endtime'
33 ),
34 'requestUpdate' => 'actions',
35 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Conditions.php',
36 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
37 ),
38 'feInterface' => array (
39 'fe_admin_fieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,title,targetField,actions,rules,conjunction',
40 )
41 );
42
43 // Configuration for Rules
44 t3lib_extMgm::addLLrefForTCAdescr('tx_powermail_domain_model_forms', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml');
45 t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_rules');
46 $TCA['tx_powermailcond_rules'] = array (
47 'ctrl' => array (
48 'title' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules',
49 'label' => 'title',
50 'tstamp' => 'tstamp',
51 'crdate' => 'crdate',
52 'cruser_id' => 'cruser_id',
53 'sortby' => 'sorting',
54 'delete' => 'deleted',
55 'enablecolumns' => array (
56 'disabled' => 'hidden'
57 ),
58 'requestUpdate' => 'ops',
59 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Rules.php',
60 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_rules.gif'
61 ),
62 'feInterface' => array (
63 'fe_admin_fieldList' => 'hidden,startField,ops,condstring'
64 )
65 );
66
67 ?>