2a7fe52de3cf6c793df64a1898eb57308fee28f2
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / irre_tutorial / Configuration / TCA / tx_irretutorial_mnmmasym_offer.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_mnmmasym_offer',
5 'label' => 'title',
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 'sortby' => 'sorting',
13 'delete' => 'deleted',
14 'enablecolumns' => array(
15 'disabled' => 'hidden',
16 ),
17 'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_offer.gif',
18 'versioningWS' => true,
19 'origUid' => 't3_origuid',
20 ),
21 'interface' => array(
22 'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotels,prices'
23 ),
24 'columns' => array(
25 'sys_language_uid' => array(
26 'exclude' => 1,
27 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
28 'config' => array(
29 'type' => 'select',
30 'renderType' => 'selectSingle',
31 'foreign_table' => 'sys_language',
32 'foreign_table_where' => 'ORDER BY sys_language.title',
33 'items' => array(
34 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
35 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
36 ),
37 'default' => 0
38 )
39 ),
40 'l18n_parent' => array(
41 'displayCond' => 'FIELD:sys_language_uid:>:0',
42 'exclude' => 1,
43 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
44 'config' => array(
45 'type' => 'select',
46 'renderType' => 'selectSingle',
47 'items' => array(
48 array('', 0),
49 ),
50 'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
51 'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_offer.sys_language_uid IN (-1,0)',
52 'default' => 0,
53 )
54 ),
55 'l18n_diffsource' => array(
56 'config' => array(
57 'type' => 'passthrough',
58 'default' => ''
59 )
60 ),
61 'hidden' => array(
62 'exclude' => 1,
63 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
64 'config' => array(
65 'type' => 'check',
66 'default' => '0'
67 )
68 ),
69 'title' => array(
70 'exclude' => 1,
71 'l10n_mode' => 'prefixLangTitle',
72 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.title',
73 'config' => array(
74 'type' => 'input',
75 'size' => '30',
76 'eval' => 'required',
77 )
78 ),
79 'hotels' => array(
80 'exclude' => 1,
81 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.hotels',
82 'config' => array(
83 'type' => 'inline',
84 'foreign_table' => 'tx_irretutorial_mnmmasym_hotel',
85 'MM' => 'tx_irretutorial_mnmmasym_hotel_offer_rel',
86 'MM_hasUidField' => true,
87 'MM_opposite_field' => 'offers',
88 'maxitems' => 10,
89 'appearance' => array(
90 'showSynchronizationLink' => 1,
91 'showAllLocalizationLink' => 1,
92 'showPossibleLocalizationRecords' => 1,
93 'showRemovedLocalizationRecords' => 1,
94 ),
95 'behaviour' => array(
96 'localizationMode' => 'select',
97 ),
98 )
99 ),
100 'prices' => array(
101 'exclude' => 1,
102 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.prices',
103 'config' => array(
104 'type' => 'inline',
105 'foreign_table' => 'tx_irretutorial_mnmmasym_price',
106 'MM' => 'tx_irretutorial_mnmmasym_offer_price_rel',
107 'MM_hasUidField' => true,
108 'maxitems' => 10,
109 'appearance' => array(
110 'showSynchronizationLink' => 1,
111 'showAllLocalizationLink' => 1,
112 'showPossibleLocalizationRecords' => 1,
113 'showRemovedLocalizationRecords' => 1,
114 ),
115 'behaviour' => array(
116 'localizationMode' => 'select',
117 ),
118 )
119 ),
120 ),
121 'types' => array(
122 '0' => array('showitem' =>
123 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotels, prices,' .
124 '--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 'palettes' => array(
128 '1' => array('showitem' => '')
129 )
130 );