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