tx_terfe2_domain_model_relation.php 4.25 KB
Newer Older
1
<?php
2 3 4
if (!defined('TYPO3_MODE')) {
    die ('Access denied.');
}
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
$GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array(
    'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_relation']['ctrl'],
    'interface' => array(
        'showRecordFieldList' => 'relation_type,relation_key,minimum_version,maximum_version',
    ),
    'types' => array(
        '1' => array('showitem' => 'relation_type,relation_key,minimum_version,maximum_version'),
    ),
    'palettes' => array(
        '1' => array('showitem' => ''),
    ),
    'columns' => array(
        'sys_language_uid' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
            'config' => array(
                'type' => 'select',
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
                'items' => array(
                    array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1),
                    array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0)
                ),
            ),
        ),
        'l18n_parent' => array(
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
            'config' => array(
                'type' => 'select',
                'foreign_table' => 'tx_terfe2_domain_model_relation',
                'foreign_table_where' => 'AND tx_terfe2_domain_model_relation.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_relation.sys_language_uid IN (-1,0)',
                'items' => array(
                    array('', 0),
                ),
            ),
        ),
        'l18n_diffsource' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
        't3ver_label' => array(
            'displayCond' => 'FIELD:t3ver_label:REQ:true',
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
            'config' => array(
                'type' => 'none',
                'cols' => 27,
            ),
        ),
        'hidden' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
            'config' => array(
                'type' => 'check',
            ),
        ),
        'relation_type' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation.relation_type',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
            ),
        ),
        'relation_key' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation.relation_key',
            'config' => array(
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
            ),
        ),
        'minimum_version' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation.minimum_version',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'eval' => 'int',
            ),
        ),
        'maximum_version' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation.maximum_version',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'eval' => 'int',
            ),
        ),
        'related_extension' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation.related_extension',
            'config' => array(
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_extension',
                'maxitems' => 1,
            ),
        ),
        'version' => array(
            'config' => array(
                'type' => 'passthrough',
            ),
        ),
    ),
);
116
?>