tx_irretutorial_1nff_hotel.php 4.94 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_1nff_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
20
21
22
        'origUid' => 't3_origuid',
        // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
        // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
        'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
23
24
    ],
    'interface' => [
25
        'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
26
27
28
    ],
    'columns' => [
        'sys_language_uid' => [
Georg Ringer's avatar
Georg Ringer committed
29
            'exclude' => true,
30
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
31
            'config' => [
32
                'type' => 'select',
33
                'renderType' => 'selectSingle',
34
35
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
36
                'items' => [
37
38
                    ['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]
39
                ],
40
                'default' => 0
41
42
43
            ]
        ],
        'l18n_parent' => [
44
            'displayCond' => 'FIELD:sys_language_uid:>:0',
Georg Ringer's avatar
Georg Ringer committed
45
            'exclude' => true,
46
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
47
            'config' => [
48
                'type' => 'select',
49
                'renderType' => 'selectSingle',
50
51
52
                'items' => [
                    ['', 0],
                ],
53
54
55
                'foreign_table' => 'tx_irretutorial_1nff_hotel',
                'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
                'default' => 0,
56
57
58
59
            ]
        ],
        'l18n_diffsource' => [
            'config' => [
60
61
                'type' => 'passthrough',
                'default' => ''
62
63
64
            ]
        ],
        'hidden' => [
Georg Ringer's avatar
Georg Ringer committed
65
            'exclude' => true,
66
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
67
            'config' => [
68
                'type' => 'check',
Georg Ringer's avatar
Georg Ringer committed
69
                'default' => 0
70
71
72
73
            ]
        ],
        'parentid' => [
            'config' => [
74
75
                'type' => 'passthrough',
                'default' => 0
76
77
78
79
            ]
        ],
        'parenttable' => [
            'config' => [
80
81
                'type' => 'passthrough',
                'default' => ''
82
83
84
85
            ]
        ],
        'parentidentifier' => [
            'config' => [
86
87
                'type' => 'passthrough',
                'default' => ''
88
89
90
            ]
        ],
        'title' => [
Georg Ringer's avatar
Georg Ringer committed
91
            'exclude' => true,
92
93
            'l10n_mode' => 'prefixLangTitle',
            'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
94
            'config' => [
95
                'type' => 'input',
Georg Ringer's avatar
Georg Ringer committed
96
                'size' => 30,
97
                'eval' => 'required',
98
99
100
            ]
        ],
        'offers' => [
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.offers',
103
            'config' => [
104
105
106
107
108
                'type' => 'inline',
                'foreign_table' => 'tx_irretutorial_1nff_offer',
                'foreign_field' => 'parentid',
                'foreign_table_field' => 'parenttable',
                'maxitems' => 10,
109
                'appearance' => [
110
111
112
113
                    'showSynchronizationLink' => 1,
                    'showAllLocalizationLink' => 1,
                    'showPossibleLocalizationRecords' => 1,
                    'showRemovedLocalizationRecords' => 1,
114
115
                ],
                'behaviour' => [
116
                    'localizeChildrenAtParentLocalization' => true,
117
118
119
120
121
122
                ],
            ]
        ],
    ],
    'types' => [
        '0' => ['showitem' =>
123
124
            '--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'
125
126
127
128
129
130
        ]
    ],
    'palettes' => [
        '1' => ['showitem' => '']
    ]
];