tx_irretutorial_mnattr_hotel_offer_rel.php 5.68 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_mnattr_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,hotelsort,offersort,quality,allincl'
24
25
26
    ],
    'columns' => [
        'sys_language_uid' => [
Georg Ringer's avatar
Georg Ringer committed
27
            'exclude' => true,
28
            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf: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:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
                    ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf: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:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
45
            'config' => [
46
                'type' => 'select',
47
                'renderType' => 'selectSingle',
48
49
50
                'items' => [
                    ['', 0],
                ],
51
52
53
                'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
                'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_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:core/Resources/Private/Language/locallang_general.xlf: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
                'foreign_table' => 'tx_irretutorial_mnattr_hotel',
                'maxitems' => 1,
                'default' => 0,
78
79
80
            ]
        ],
        'offerid' => [
81
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
82
            'config' => [
83
                'type' => 'select',
84
                'renderType' => 'selectSingle',
85
86
87
                'foreign_table' => 'tx_irretutorial_mnattr_offer',
                'maxitems' => 1,
                'default' => 0,
88
89
90
91
            ]
        ],
        'hotelsort' => [
            'config' => [
92
                'type' => 'passthrough',
93
94
95
96
            ]
        ],
        'offersort' => [
            'config' => [
97
                'type' => 'passthrough',
98
99
100
            ]
        ],
        'quality' => [
Georg Ringer's avatar
Georg Ringer committed
101
            'exclude' => true,
102
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality',
103
            'config' => [
104
                'type' => 'select',
105
                'renderType' => 'selectSingle',
106
107
108
109
110
111
112
113
114
115
                'items' => [
                    ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.0', '1'],
                    ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.1', '2'],
                    ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.2', '3'],
                    ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.3', '4'],
                    ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.4', '5'],
                ],
            ]
        ],
        'allincl' => [
Georg Ringer's avatar
Georg Ringer committed
116
            'exclude' => true,
117
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.allincl',
118
            'config' => [
119
                'type' => 'check',
120
121
122
123
124
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
125
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, hotelsort, offersort, quality, allincl,' .
126
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
127
128
129
130
131
132
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];