5934618c97a7f21460788e2b148807d2b831f31c
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / irre_tutorial / Configuration / TCA / tx_irretutorial_mnasym_hotel_offer_rel.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_mnasym_hotel_offer_rel',
5 'label' => 'uid',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'languageField' => 'sys_language_uid',
10 'transOrigPointerField' => 'l18n_parent',
11 'transOrigDiffSourceField' => 'l18n_diffsource',
12 'delete' => 'deleted',
13 'enablecolumns' => array(
14 'disabled' => 'hidden',
15 ),
16 'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel_offer_rel.gif',
17 'versioningWS' => true,
18 'origUid' => 't3_origuid',
19 // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
20 // 'shadowColumnsForNewPlaceholders' => 'hotelid,offerid',
21 ),
22 'interface' => array(
23 'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,prices,hotelsort,offersort'
24 ),
25 'columns' => array(
26 'sys_language_uid' => array(
27 'exclude' => 1,
28 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
29 'config' => array(
30 'type' => 'select',
31 'renderType' => 'selectSingle',
32 'foreign_table' => 'sys_language',
33 'foreign_table_where' => 'ORDER BY sys_language.title',
34 'items' => array(
35 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
36 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
37 ),
38 'default' => 0
39 )
40 ),
41 'l18n_parent' => array(
42 'displayCond' => 'FIELD:sys_language_uid:>:0',
43 'exclude' => 1,
44 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
45 'config' => array(
46 'type' => 'select',
47 'renderType' => 'selectSingle',
48 'items' => array(
49 array('', 0),
50 ),
51 'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
52 'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel_offer_rel.sys_language_uid IN (-1,0)',
53 'default' => 0,
54 )
55 ),
56 'l18n_diffsource' => array(
57 'config' => array(
58 'type' => 'passthrough',
59 'default' => ''
60 )
61 ),
62 'hidden' => array(
63 'exclude' => 1,
64 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
65 'config' => array(
66 'type' => 'check',
67 'default' => '0'
68 )
69 ),
70 'hotelid' => array(
71 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
72 'config' => array(
73 'type' => 'select',
74 'renderType' => 'selectSingle',
75 'foreign_table' => 'tx_irretutorial_mnasym_hotel',
76 'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid="###REC_FIELD_sys_language_uid###"',
77 'maxitems' => 1,
78 'localizeReferences' => 1,
79 'default' => 0,
80 )
81 ),
82 'offerid' => array(
83 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
84 'config' => array(
85 'type' => 'select',
86 'renderType' => 'selectSingle',
87 'foreign_table' => 'tx_irretutorial_mnasym_offer',
88 'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid="###REC_FIELD_sys_language_uid###"',
89 'maxitems' => 1,
90 'localizeReferences' => 1,
91 'default' => 0,
92 )
93 ),
94 'prices' => array(
95 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.prices',
96 'config' => array(
97 'type' => 'inline',
98 'foreign_table' => 'tx_irretutorial_mnasym_price',
99 'foreign_field' => 'parentid',
100 'maxitems' => 10,
101 'appearance' => array(
102 'showSynchronizationLink' => 1,
103 'showAllLocalizationLink' => 1,
104 'showPossibleLocalizationRecords' => 1,
105 'showRemovedLocalizationRecords' => 1,
106 ),
107 'behaviour' => array(
108 'localizationMode' => 'select',
109 ),
110 )
111 ),
112 'hotelsort' => array(
113 'config' => array(
114 'type' => 'passthrough',
115 )
116 ),
117 'offersort' => array(
118 'config' => array(
119 'type' => 'passthrough',
120 )
121 ),
122 ),
123 'types' => array(
124 '0' => array('showitem' =>
125 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, prices,' .
126 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1, hotelsort, offersort'
127 )
128 ),
129 'palettes' => array(
130 '1' => array('showitem' => '')
131 )
132 );