tx_irretutorial_mnattr_hotel_offer_rel.php 5.72 KB
Newer Older
1
<?php
2
3
return [
    'ctrl' => [
4
5
6
7
8
9
10
11
        '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',
12
        'translationSource' => 'l10n_source',
13
        'delete' => 'deleted',
14
        'enablecolumns' => [
15
            'disabled' => 'hidden',
16
        ],
17
        'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel_offer_rel.gif',
18
        'versioningWS' => true,
19
20
21
        'origUid' => 't3_origuid',
        // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
        // 'shadowColumnsForNewPlaceholders' => 'hotelid,offerid',
22
23
    ],
    'interface' => [
24
        'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,hotelsort,offersort,quality,allincl'
25
26
27
    ],
    'columns' => [
        'sys_language_uid' => [
Georg Ringer's avatar
Georg Ringer committed
28
            'exclude' => true,
29
            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
30
            'config' => [
31
                'type' => 'select',
32
                'renderType' => 'selectSingle',
33
34
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
35
                'items' => [
36
37
                    ['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]
38
                ],
39
                'default' => 0
40
41
42
            ]
        ],
        'l18n_parent' => [
43
            'displayCond' => 'FIELD:sys_language_uid:>:0',
Georg Ringer's avatar
Georg Ringer committed
44
            'exclude' => true,
45
            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
46
            'config' => [
47
                'type' => 'select',
48
                'renderType' => 'selectSingle',
49
50
51
                'items' => [
                    ['', 0],
                ],
52
53
54
                '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,
55
56
57
58
            ]
        ],
        'l18n_diffsource' => [
            'config' => [
59
60
                'type' => 'passthrough',
                'default' => ''
61
62
63
            ]
        ],
        'hidden' => [
Georg Ringer's avatar
Georg Ringer committed
64
            'exclude' => true,
65
            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
66
            'config' => [
67
                'type' => 'check',
Georg Ringer's avatar
Georg Ringer committed
68
                'default' => 0
69
70
71
            ]
        ],
        'hotelid' => [
72
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
73
            'config' => [
74
                'type' => 'select',
75
                'renderType' => 'selectSingle',
76
77
78
                'foreign_table' => 'tx_irretutorial_mnattr_hotel',
                '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
                'foreign_table' => 'tx_irretutorial_mnattr_offer',
                'maxitems' => 1,
                'default' => 0,
89
90
91
92
            ]
        ],
        'hotelsort' => [
            'config' => [
93
                'type' => 'passthrough',
94
95
96
97
            ]
        ],
        'offersort' => [
            'config' => [
98
                'type' => 'passthrough',
99
100
101
            ]
        ],
        'quality' => [
Georg Ringer's avatar
Georg Ringer committed
102
            'exclude' => true,
103
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality',
104
            'config' => [
105
                'type' => 'select',
106
                'renderType' => 'selectSingle',
107
108
109
110
111
112
113
114
115
116
                '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
117
            'exclude' => true,
118
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.allincl',
119
            'config' => [
120
                'type' => 'check',
121
122
123
124
125
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
126
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, hotelsort, offersort, quality, allincl,' .
127
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
128
129
130
131
132
133
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];