tx_irretutorial_mnasym_hotel_offer_rel.php 5.36 KB
Newer Older
1
<?php
2
3
return [
    'ctrl' => [
4
5
6
7
8
9
10
11
12
        'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_mnasym_hotel_offer_rel',
        'label' => 'uid',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
        'delete' => 'deleted',
13
        'enablecolumns' => [
14
            'disabled' => 'hidden',
15
        ],
16
        'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel_offer_rel.gif',
17
        'versioningWS' => true,
18
19
20
        'origUid' => 't3_origuid',
        // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
        // 'shadowColumnsForNewPlaceholders' => 'hotelid,offerid',
21
22
    ],
    'interface' => [
23
        'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,prices,hotelsort,offersort'
24
25
26
    ],
    'columns' => [
        'sys_language_uid' => [
Georg Ringer's avatar
Georg Ringer committed
27
            'exclude' => true,
28
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
29
            'config' => [
30
                'type' => 'select',
31
                'renderType' => 'selectSingle',
32
33
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
34
                'items' => [
35
36
                    ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.allLanguages', -1],
                    ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.default_value', 0]
37
                ],
38
                'default' => 0
39
40
41
            ]
        ],
        'l18n_parent' => [
42
            'displayCond' => 'FIELD:sys_language_uid:>:0',
Georg Ringer's avatar
Georg Ringer committed
43
            'exclude' => true,
44
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
45
            'config' => [
46
                'type' => 'select',
47
                'renderType' => 'selectSingle',
48
49
50
                'items' => [
                    ['', 0],
                ],
51
52
53
                'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
                'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel_offer_rel.sys_language_uid IN (-1,0)',
                'default' => 0,
54
55
56
57
            ]
        ],
        'l18n_diffsource' => [
            'config' => [
58
59
                'type' => 'passthrough',
                'default' => ''
60
61
62
            ]
        ],
        'hidden' => [
Georg Ringer's avatar
Georg Ringer committed
63
            'exclude' => true,
64
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
65
            'config' => [
66
                'type' => 'check',
Georg Ringer's avatar
Georg Ringer committed
67
                'default' => 0
68
69
70
            ]
        ],
        'hotelid' => [
71
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
72
            'config' => [
73
                'type' => 'select',
74
                'renderType' => 'selectSingle',
75
76
77
78
                'foreign_table' => 'tx_irretutorial_mnasym_hotel',
                'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid="###REC_FIELD_sys_language_uid###"',
                'maxitems' => 1,
                'default' => 0,
79
80
81
            ]
        ],
        'offerid' => [
82
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
83
            'config' => [
84
                'type' => 'select',
85
                'renderType' => 'selectSingle',
86
87
88
89
                'foreign_table' => 'tx_irretutorial_mnasym_offer',
                'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid="###REC_FIELD_sys_language_uid###"',
                'maxitems' => 1,
                'default' => 0,
90
91
92
            ]
        ],
        'prices' => [
93
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.prices',
94
            'config' => [
95
96
97
98
                'type' => 'inline',
                'foreign_table' => 'tx_irretutorial_mnasym_price',
                'foreign_field' => 'parentid',
                'maxitems' => 10,
99
                'appearance' => [
100
101
102
103
                    'showSynchronizationLink' => 1,
                    'showAllLocalizationLink' => 1,
                    'showPossibleLocalizationRecords' => 1,
                    'showRemovedLocalizationRecords' => 1,
104
105
106
107
108
                ],
            ]
        ],
        'hotelsort' => [
            'config' => [
109
                'type' => 'passthrough',
110
111
112
113
            ]
        ],
        'offersort' => [
            'config' => [
114
                'type' => 'passthrough',
115
116
117
118
119
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
120
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, prices,' .
121
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden, hotelsort, offersort'
122
123
124
125
126
127
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];