Working Copy
[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, 'Configuration/TypoScript/', 'Main TypoScript');
13
14 // Configuration for Conditions
15 t3lib_extMgm::addLLrefForTCAdescr('tx_powermailcond_domain_model_condition', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml');
16 t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_domain_model_condition');
17 $TCA['tx_powermailcond_domain_model_condition'] = 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,form',
35 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Condition.php',
36 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif',
37 ),
38 );
39
40 // Configuration for Rules
41 t3lib_extMgm::addLLrefForTCAdescr('tx_powermailcond_domain_model_rule', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml');
42 t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_domain_model_rule');
43 $TCA['tx_powermailcond_domain_model_rule'] = array (
44 'ctrl' => array (
45 'title' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules',
46 'label' => 'title',
47 'tstamp' => 'tstamp',
48 'crdate' => 'crdate',
49 'cruser_id' => 'cruser_id',
50 'sortby' => 'sorting',
51 'delete' => 'deleted',
52 'enablecolumns' => array (
53 'disabled' => 'hidden'
54 ),
55 'requestUpdate' => 'ops',
56 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Rule.php',
57 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_rules.gif'
58 ),
59 );
60
61 ?>