[TASK] TCA cleanup for TYPO3 7.6
authorAlex Kellner <alexander.kellner@in2code.de>
Sat, 14 Nov 2015 19:50:07 +0000 (20:50 +0100)
committerAlex Kellner <alexander.kellner@in2code.de>
Sat, 14 Nov 2015 19:50:07 +0000 (20:50 +0100)
Configuration/TCA/tx_powermailcond_domain_model_condition.php
Configuration/TCA/tx_powermailcond_domain_model_conditioncontainer.php
Configuration/TCA/tx_powermailcond_domain_model_rule.php

index d72ea82..ef5d911 100644 (file)
@@ -14,8 +14,7 @@ return array(
                        'starttime' => 'starttime',
                        'endtime' => 'endtime',
                ),
-               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('powermail_cond') .
-                       'Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
+               'iconfile' => 'EXT:powermail_cond/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,
@@ -33,6 +32,7 @@ return array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'foreign_table' => 'sys_language',
                                'foreign_table_where' => 'ORDER BY sys_language.title',
                                'items' => array(
@@ -43,10 +43,11 @@ return array(
                ),
                'l18n_parent' => array (
                        'displayCond' => 'FIELD:sys_language_uid:>:0',
-                       'exclude'     => 1,
-                       'label'       => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
-                       'config'      => array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
+                       'config' => array (
                                'type'  => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array (
                                        array('', 0),
                                ),
@@ -131,6 +132,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.conjunction',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        // OR
                                        array(
@@ -153,6 +155,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.targetField',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array(
                                                'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.targetField.I.0',
@@ -171,6 +174,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        // title main
                                        array(
@@ -206,6 +210,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.conditioncontainer',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array(
                                                '',
index 8207d14..d583f92 100644 (file)
@@ -15,8 +15,7 @@ return array(
                        'endtime' => 'endtime',
                ),
                'requestUpdate' => 'form',
-               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('powermail_cond') .
-                       'Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
+               'iconfile' => 'EXT:powermail_cond/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,
@@ -34,6 +33,7 @@ return array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'foreign_table' => 'sys_language',
                                'foreign_table_where' => 'ORDER BY sys_language.title',
                                'items' => array(
@@ -44,16 +44,17 @@ return array(
                ),
                'l18n_parent' => array (
                        'displayCond' => 'FIELD:sys_language_uid:>:0',
-                       'exclude'     => 1,
-                       'label'       => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
-                       'config'      => array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
+                       'config' => array (
                                'type'  => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array (
                                        array('', 0),
                                ),
                                'foreign_table' => 'tx_powermailcond_conditioncontainer',
-                               'foreign_table_where' =>
-                                       'AND tx_powermailcond_conditioncontainer.pid=###CURRENT_PID### AND tx_powermailcond_conditioncontainer.sys_language_uid IN (-1,0)',
+                               'foreign_table_where' => 'AND tx_powermailcond_conditioncontainer.pid=###CURRENT_PID### AND ' .
+                                       'tx_powermailcond_conditioncontainer.sys_language_uid IN (-1,0)',
                        )
                ),
                'l18n_diffsource' => array (
@@ -113,6 +114,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditioncontainer.form',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array(
                                                'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditioncontainer.form.pleaseChoose',
index 1e2f68e..c8a4be0 100644 (file)
@@ -12,8 +12,7 @@ return array(
                        'disabled' => 'hidden'
                ),
                'requestUpdate' => 'ops',
-               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('powermail_cond') .
-                       'Resources/Public/Icons/icon_tx_powermailcond_rules.gif'
+               'iconfile' => 'EXT:powermail_cond/Resources/Public/Icons/icon_tx_powermailcond_rules.gif'
        ),
        'interface' => array(
                'showRecordFieldList' => 'hidden,conditions,title,start_field,ops,cond_string,equal_field',
@@ -46,6 +45,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.startField',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.startField.I.0', '0'),
                                ),
@@ -62,6 +62,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        // title operators
                                        array(
@@ -83,7 +84,8 @@ return array(
 
                                        // title operatorsComparisonValue
                                        array(
-                                               'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonValue',
+                                               'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:' .
+                                                       'tx_powermailcond_rules.operator.I.operatorsComparisonValue',
                                                '--div--'
                                        ),
 
@@ -125,7 +127,8 @@ return array(
 
                                        // title operatorsComparisonField
                                        array(
-                                               'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonField',
+                                               'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:' .
+                                                       'tx_powermailcond_rules.operator.I.operatorsComparisonField',
                                                '--div--'
                                        ),
 
@@ -161,6 +164,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.equalField',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array(
                                                'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.equalField.I.0',
@@ -181,6 +185,7 @@ return array(
                        'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.condition',
                        'config' => array(
                                'type' => 'select',
+                               'renderType' => 'selectSingle',
                                'items' => array(
                                        array(
                                                '',