TYPO3 CMS  TYPO3_6-2
tca.1nff.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_1nff_hotel'] = array(
7  'ctrl' => $TCA['tx_irretutorial_1nff_hotel']['ctrl'],
8  'interface' => array(
9  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
10  ),
11  'feInterface' => $TCA['tx_irretutorial_1nff_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_1nff_hotel',
36  'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_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  'parentid' => array(
53  'config' => array(
54  'type' => 'passthrough',
55  )
56  ),
57  'parenttable' => array(
58  'config' => array(
59  'type' => 'passthrough',
60  )
61  ),
62  'title' => array(
63  'exclude' => 1,
64  'l10n_mode' => 'prefixLangTitle',
65  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
66  'config' => array(
67  'type' => 'input',
68  'size' => '30',
69  'eval' => 'required',
70  )
71  ),
72  'offers' => array(
73  'exclude' => 1,
74  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
75  'config' => array(
76  'type' => 'inline',
77  'foreign_table' => 'tx_irretutorial_1nff_offer',
78  'foreign_field' => 'parentid',
79  'foreign_table_field' => 'parenttable',
80  'maxitems' => 10,
81  'appearance' => array(
82  'showSynchronizationLink' => 1,
83  'showAllLocalizationLink' => 1,
84  'showPossibleLocalizationRecords' => 1,
85  'showRemovedLocalizationRecords' => 1,
86  ),
87  'behaviour' => array(
88  'localizationMode' => 'select',
89  'localizeChildrenAtParentLocalization' => TRUE,
90  ),
91  )
92  ),
93  ),
94  'types' => array(
95  '0' => Array('showitem' =>
96  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, offers;;;;3-3-3,' .
97  '--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'
98  )
99  ),
100  'palettes' => array(
101  '1' => Array('showitem' => '')
102  )
103 );
104 
105 
106 
107 $TCA['tx_irretutorial_1nff_offer'] = array(
108  'ctrl' => $TCA['tx_irretutorial_1nff_offer']['ctrl'],
109  'interface' => array(
110  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,parentid,parenttable,title,prices'
111  ),
112  'feInterface' => $TCA['tx_irretutorial_1nff_offer']['feInterface'],
113  'columns' => array(
114  'sys_language_uid' => array(
115  'exclude' => 1,
116  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
117  'config' => array(
118  'type' => 'select',
119  'foreign_table' => 'sys_language',
120  'foreign_table_where' => 'ORDER BY sys_language.title',
121  'items' => array(
122  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
123  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
124  )
125  )
126  ),
127  'l18n_parent' => array(
128  'displayCond' => 'FIELD:sys_language_uid:>:0',
129  'exclude' => 1,
130  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
131  'config' => array(
132  'type' => 'select',
133  'items' => array(
134  array('', 0),
135  ),
136  'foreign_table' => 'tx_irretutorial_1nff_offer',
137  'foreign_table_where' => 'AND tx_irretutorial_1nff_offer.pid=###CURRENT_PID### AND tx_irretutorial_1nff_offer.sys_language_uid IN (-1,0)',
138  )
139  ),
140  'l18n_diffsource' => array(
141  'config' => array(
142  'type' => 'passthrough'
143  )
144  ),
145  'hidden' => array(
146  'exclude' => 1,
147  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
148  'config' => array(
149  'type' => 'check',
150  'default' => '0'
151  )
152  ),
153  'parentid' => array(
154  'config' => array(
155  'type' => 'passthrough',
156  )
157  ),
158  'parenttable' => array(
159  'config' => array(
160  'type' => 'passthrough',
161  )
162  ),
163  'title' => array(
164  'exclude' => 1,
165  'l10n_mode' => 'prefixLangTitle',
166  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.title',
167  'config' => array(
168  'type' => 'input',
169  'size' => '30',
170  'eval' => 'required',
171  )
172  ),
173  'prices' => array(
174  'exclude' => 1,
175  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_offer.prices',
176  'config' => array(
177  'type' => 'inline',
178  'foreign_table' => 'tx_irretutorial_1nff_price',
179  'foreign_field' => 'parentid',
180  'foreign_table_field' => 'parenttable',
181  'maxitems' => 10,
182  'appearance' => array(
183  'showSynchronizationLink' => 1,
184  'showAllLocalizationLink' => 1,
185  'showPossibleLocalizationRecords' => 1,
186  'showRemovedLocalizationRecords' => 1,
187  ),
188  'behaviour' => array(
189  'localizationMode' => 'select',
190  'localizeChildrenAtParentLocalization' => TRUE,
191  ),
192  )
193  ),
194  ),
195  'types' => array(
196  '0' => Array('showitem' =>
197  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, prices;;;;3-3-3,' .
198  '--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, parentid, parenttable'
199  )
200  ),
201  'palettes' => array(
202  '1' => Array('showitem' => '')
203  )
204 );
205 
206 
207 
208 $TCA['tx_irretutorial_1nff_price'] = array(
209  'ctrl' => $TCA['tx_irretutorial_1nff_price']['ctrl'],
210  'interface' => array(
211  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,parentid,title,price'
212  ),
213  'feInterface' => $TCA['tx_irretutorial_1nff_price']['feInterface'],
214  'columns' => array(
215  'sys_language_uid' => array(
216  'exclude' => 1,
217  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
218  'config' => array(
219  'type' => 'select',
220  'foreign_table' => 'sys_language',
221  'foreign_table_where' => 'ORDER BY sys_language.title',
222  'items' => array(
223  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
224  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
225  )
226  )
227  ),
228  'l18n_parent' => array(
229  'displayCond' => 'FIELD:sys_language_uid:>:0',
230  'exclude' => 1,
231  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
232  'config' => array(
233  'type' => 'select',
234  'items' => array(
235  array('', 0),
236  ),
237  'foreign_table' => 'tx_irretutorial_1nff_price',
238  'foreign_table_where' => 'AND tx_irretutorial_1nff_price.pid=###CURRENT_PID### AND tx_irretutorial_1nff_price.sys_language_uid IN (-1,0)',
239  )
240  ),
241  'l18n_diffsource' => array(
242  'config' => array(
243  'type' => 'passthrough'
244  )
245  ),
246  'hidden' => array(
247  'exclude' => 1,
248  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
249  'config' => array(
250  'type' => 'check',
251  'default' => '0'
252  )
253  ),
254  'parentid' => array(
255  'config' => array(
256  'type' => 'passthrough',
257  )
258  ),
259  'parenttable' => array(
260  'config' => array(
261  'type' => 'passthrough',
262  )
263  ),
264  'title' => array(
265  'exclude' => 1,
266  'l10n_mode' => 'prefixLangTitle',
267  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
268  'config' => array(
269  'type' => 'input',
270  'size' => '30',
271  'eval' => 'required',
272  )
273  ),
274  'price' => array(
275  'exclude' => 1,
276  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
277  'config' => array(
278  'type' => 'input',
279  'size' => '30',
280  'eval' => 'double2',
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, price;;;;3-3-3,' .
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, parentid'
288  )
289  ),
290  'palettes' => array(
291  '1' => Array('showitem' => '')
292  )
293 );
294 ?>
if(!defined('TYPO3_MODE')) $TCA['tx_irretutorial_1nff_hotel']
Definition: tca.1nff.php:6
die
Definition: index.php:6