tx_irretutorial_mnasym_hotel.php 4.19 KB
Newer Older
1
<?php
2
3
return [
    'ctrl' => [
4
5
6
7
8
9
10
11
12
13
        'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_mnasym_hotel',
        'label' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
        'sortby' => 'sorting',
        'delete' => 'deleted',
14
        'enablecolumns' => [
15
            'disabled' => 'hidden',
16
        ],
17
        'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel.gif',
18
        'versioningWS' => true,
19
        'origUid' => 't3_origuid',
20
21
    ],
    'interface' => [
22
        'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
23
24
25
    ],
    'columns' => [
        'sys_language_uid' => [
Georg Ringer's avatar
Georg Ringer committed
26
            'exclude' => true,
27
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
28
            'config' => [
29
                'type' => 'select',
30
                'renderType' => 'selectSingle',
31
32
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
33
                'items' => [
34
35
                    ['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]
36
                ],
37
                'default' => 0
38
39
40
            ]
        ],
        'l18n_parent' => [
41
            'displayCond' => 'FIELD:sys_language_uid:>:0',
Georg Ringer's avatar
Georg Ringer committed
42
            'exclude' => true,
43
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
44
            'config' => [
45
                'type' => 'select',
46
                'renderType' => 'selectSingle',
47
48
49
                'items' => [
                    ['', 0],
                ],
50
51
52
                '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 IN (-1,0)',
                'default' => 0,
53
54
55
56
            ]
        ],
        'l18n_diffsource' => [
            'config' => [
57
58
                'type' => 'passthrough',
                'default' => ''
59
60
61
            ]
        ],
        'hidden' => [
Georg Ringer's avatar
Georg Ringer committed
62
            'exclude' => true,
63
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
64
            'config' => [
65
                'type' => 'check',
Georg Ringer's avatar
Georg Ringer committed
66
                'default' => 0
67
68
69
            ]
        ],
        'title' => [
Georg Ringer's avatar
Georg Ringer committed
70
            'exclude' => true,
71
72
            'l10n_mode' => 'prefixLangTitle',
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
73
            'config' => [
74
                'type' => 'input',
Georg Ringer's avatar
Georg Ringer committed
75
                'size' => 30,
76
                'eval' => 'required',
77
78
79
            ]
        ],
        'offers' => [
Georg Ringer's avatar
Georg Ringer committed
80
            'exclude' => true,
81
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
82
            'config' => [
83
84
85
86
87
88
                'type' => 'inline',
                'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
                'foreign_field' => 'hotelid',
                'foreign_sortby' => 'hotelsort',
                'foreign_label' => 'offerid',
                'maxitems' => 10,
89
                'appearance' => [
90
91
92
93
                    'showSynchronizationLink' => 1,
                    'showAllLocalizationLink' => 1,
                    'showPossibleLocalizationRecords' => 1,
                    'showRemovedLocalizationRecords' => 1,
94
95
96
97
98
99
                ],
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
100
101
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers,' .
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1'
102
103
104
105
106
107
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];