tx_irretutorial_mnasym_hotel.php 4.23 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_mnasym_hotel',
        'label' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
12
        'translationSource' => 'l10n_source',
13
14
        'sortby' => 'sorting',
        'delete' => 'deleted',
15
        'enablecolumns' => [
16
            'disabled' => 'hidden',
17
        ],
18
        'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel.gif',
19
        'versioningWS' => true,
20
        'origUid' => 't3_origuid',
21
22
    ],
    'interface' => [
23
        'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
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_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,
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
            ]
        ],
        'title' => [
Georg Ringer's avatar
Georg Ringer committed
71
            'exclude' => true,
72
73
            'l10n_mode' => 'prefixLangTitle',
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
74
            'config' => [
75
                'type' => 'input',
Georg Ringer's avatar
Georg Ringer committed
76
                'size' => 30,
77
                'eval' => 'required',
78
79
80
            ]
        ],
        'offers' => [
Georg Ringer's avatar
Georg Ringer committed
81
            'exclude' => true,
82
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
83
            'config' => [
84
85
86
87
88
89
                'type' => 'inline',
                'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
                'foreign_field' => 'hotelid',
                'foreign_sortby' => 'hotelsort',
                'foreign_label' => 'offerid',
                'maxitems' => 10,
90
                'appearance' => [
91
92
93
94
                    'showSynchronizationLink' => 1,
                    'showAllLocalizationLink' => 1,
                    'showPossibleLocalizationRecords' => 1,
                    'showRemovedLocalizationRecords' => 1,
95
96
97
98
99
100
                ],
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
101
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers,' .
102
            '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
103
104
105
106
107
108
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];