TYPO3 CMS  TYPO3_6-2
tca.mnattr.php
Go to the documentation of this file.
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 
6 $TCA['tx_irretutorial_mnattr_hotel'] = array(
7  'ctrl' => $TCA['tx_irretutorial_mnattr_hotel']['ctrl'],
8  'interface' => array(
9  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
10  ),
11  'feInterface' => $TCA['tx_irretutorial_mnattr_hotel']['feInterface'],
12  'columns' => array(
13  'sys_language_uid' => array(
14  'exclude' => 1,
15  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
16  'config' => array(
17  'type' => 'select',
18  'foreign_table' => 'sys_language',
19  'foreign_table_where' => 'ORDER BY sys_language.title',
20  'items' => array(
21  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
22  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
23  )
24  )
25  ),
26  'l18n_parent' => array(
27  'displayCond' => 'FIELD:sys_language_uid:>:0',
28  'exclude' => 1,
29  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
30  'config' => array(
31  'type' => 'select',
32  'items' => array(
33  array('', 0),
34  ),
35  'foreign_table' => 'tx_irretutorial_mnattr_hotel',
36  'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_hotel.sys_language_uid IN (-1,0)',
37  )
38  ),
39  'l18n_diffsource' => array(
40  'config' => array(
41  'type' => 'passthrough'
42  )
43  ),
44  'hidden' => array(
45  'exclude' => 1,
46  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
47  'config' => array(
48  'type' => 'check',
49  'default' => '0'
50  )
51  ),
52  'title' => array(
53  'exclude' => 1,
54  'l10n_mode' => 'prefixLangTitle',
55  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
56  'config' => array(
57  'type' => 'input',
58  'size' => '30',
59  'eval' => 'required',
60  )
61  ),
62  'offers' => array(
63  'exclude' => 1,
64  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
65  'config' => array(
66  'type' => 'inline',
67  'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
68  'foreign_field' => 'hotelid',
69  'foreign_sortby' => 'hotelsort',
70  'foreign_label' => 'offerid',
71  'maxitems' => 10,
72  'appearance' => array(
73  'showSynchronizationLink' => 1,
74  'showAllLocalizationLink' => 1,
75  'showPossibleLocalizationRecords' => 1,
76  'showRemovedLocalizationRecords' => 1,
77  ),
78  'behaviour' => array(
79  'localizationMode' => 'select',
80  ),
81  )
82  ),
83  ),
84  'types' => array(
85  '0' => Array('showitem' =>
86  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, offers;;;;3-3-3,' .
87  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
88  )
89  ),
90  'palettes' => array(
91  '1' => Array('showitem' => '')
92  )
93 );
94 
95 
96 
97 $TCA['tx_irretutorial_mnattr_hotel_offer_rel'] = array(
98  'ctrl' => $TCA['tx_irretutorial_mnattr_hotel_offer_rel']['ctrl'],
99  'interface' => array(
100  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,hotelsort,offersort,quality,allincl'
101  ),
102  'feInterface' => $TCA['tx_irretutorial_mnattr_hotel_offer_rel']['feInterface'],
103  'columns' => array(
104  'sys_language_uid' => array(
105  'exclude' => 1,
106  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
107  'config' => array(
108  'type' => 'select',
109  'foreign_table' => 'sys_language',
110  'foreign_table_where' => 'ORDER BY sys_language.title',
111  'items' => array(
112  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
113  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
114  )
115  )
116  ),
117  'l18n_parent' => array(
118  'displayCond' => 'FIELD:sys_language_uid:>:0',
119  'exclude' => 1,
120  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
121  'config' => array(
122  'type' => 'select',
123  'items' => array(
124  array('', 0),
125  ),
126  'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
127  'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_hotel_offer_rel.sys_language_uid IN (-1,0)',
128  )
129  ),
130  'l18n_diffsource' => array(
131  'config' => array(
132  'type' => 'passthrough'
133  )
134  ),
135  'hidden' => array(
136  'exclude' => 1,
137  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
138  'config' => array(
139  'type' => 'check',
140  'default' => '0'
141  )
142  ),
143  'hotelid' => array(
144  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
145  'config' => array(
146  'type' => 'select',
147  'foreign_table' => 'tx_irretutorial_mnattr_hotel',
148  'maxitems' => 1,
149  'localizeReferences' => 1,
150  )
151  ),
152  'offerid' => array(
153  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
154  'config' => array(
155  'type' => 'select',
156  'foreign_table' => 'tx_irretutorial_mnattr_offer',
157  'maxitems' => 1,
158  'localizeReferences' => 1,
159  )
160  ),
161  'hotelsort' => array(
162  'config' => array(
163  'type' => 'passthrough',
164  )
165  ),
166  'offersort' => array(
167  'config' => array(
168  'type' => 'passthrough',
169  )
170  ),
171  'quality' => array(
172  'exclude' => 1,
173  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality',
174  'config' => array(
175  'type' => 'select',
176  'items' => array(
177  Array('LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.0', '1'),
178  Array('LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.1', '2'),
179  Array('LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.2', '3'),
180  Array('LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.3', '4'),
181  Array('LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.4', '5'),
182  ),
183  )
184  ),
185  'allincl' => array(
186  'exclude' => 1,
187  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.allincl',
188  'config' => array(
189  'type' => 'check',
190  )
191  ),
192  ),
193  'types' => array(
194  '0' => Array('showitem' =>
195  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotelid;;;;3-3-3, offerid, hotelsort, offersort, quality, allincl,' .
196  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
197  )
198  ),
199  'palettes' => array(
200  '1' => Array('showitem' => '')
201  )
202 );
203 
204 
205 
206 $TCA['tx_irretutorial_mnattr_offer'] = array(
207  'ctrl' => $TCA['tx_irretutorial_mnattr_offer']['ctrl'],
208  'interface' => array(
209  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotels'
210  ),
211  'feInterface' => $TCA['tx_irretutorial_mnattr_offer']['feInterface'],
212  'columns' => array(
213  'sys_language_uid' => array(
214  'exclude' => 1,
215  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
216  'config' => array(
217  'type' => 'select',
218  'foreign_table' => 'sys_language',
219  'foreign_table_where' => 'ORDER BY sys_language.title',
220  'items' => array(
221  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
222  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
223  )
224  )
225  ),
226  'l18n_parent' => array(
227  'displayCond' => 'FIELD:sys_language_uid:>:0',
228  'exclude' => 1,
229  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
230  'config' => array(
231  'type' => 'select',
232  'items' => array(
233  array('', 0),
234  ),
235  'foreign_table' => 'tx_irretutorial_mnattr_offer',
236  'foreign_table_where' => 'AND tx_irretutorial_mnattr_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_offer.sys_language_uid IN (-1,0)',
237  )
238  ),
239  'l18n_diffsource' => array(
240  'config' => array(
241  'type' => 'passthrough'
242  )
243  ),
244  'hidden' => array(
245  'exclude' => 1,
246  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
247  'config' => array(
248  'type' => 'check',
249  'default' => '0'
250  )
251  ),
252  'title' => array(
253  'exclude' => 1,
254  'l10n_mode' => 'prefixLangTitle',
255  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.title',
256  'config' => array(
257  'type' => 'input',
258  'size' => '30',
259  'eval' => 'required',
260  )
261  ),
262  'hotels' => array(
263  'exclude' => 1,
264  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.hotels',
265  'config' => array(
266  'type' => 'inline',
267  'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
268  'foreign_field' => 'offerid',
269  'foreign_sortby' => 'offersort',
270  'foreign_label' => 'hotelid',
271  'maxitems' => 10,
272  'appearance' => array(
273  'showSynchronizationLink' => 1,
274  'showAllLocalizationLink' => 1,
275  'showPossibleLocalizationRecords' => 1,
276  'showRemovedLocalizationRecords' => 1,
277  ),
278  'behaviour' => array(
279  'localizationMode' => 'select',
280  ),
281  )
282  ),
283  ),
284  'types' => array(
285  '0' => Array('showitem' =>
286  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotels,' .
287  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1'
288  )
289  ),
290  'palettes' => array(
291  '1' => Array('showitem' => '')
292  )
293 );
294 ?>
if(!defined('TYPO3_MODE')) $TCA['tx_irretutorial_mnattr_hotel']
Definition: tca.mnattr.php:6
die
Definition: index.php:6