TYPO3 CMS  TYPO3_6-2
tca.mnsym.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_mnsym_hotel'] = array(
7  'ctrl' => $TCA['tx_irretutorial_mnsym_hotel']['ctrl'],
8  'interface' => array(
9  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,branches'
10  ),
11  'feInterface' => $TCA['tx_irretutorial_mnsym_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_mnsym_hotel',
36  'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_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  'branches' => array(
63  'exclude' => 1,
64  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.branches',
65  'config' => array(
66  'type' => 'inline',
67  'foreign_table' => 'tx_irretutorial_mnsym_hotel_rel',
68  'foreign_field' => 'hotelid',
69  'foreign_sortby' => 'hotelsort',
70  'foreign_label' => 'branchid',
71  'symmetric_field' => 'branchid',
72  'symmetric_sortby' => 'branchsort',
73  'symmetric_label' => 'hotelid',
74  'maxitems' => 10,
75  'appearance' => array(
76  'showSynchronizationLink' => 1,
77  'showAllLocalizationLink' => 1,
78  'showPossibleLocalizationRecords' => 1,
79  'showRemovedLocalizationRecords' => 1,
80  ),
81  'behaviour' => array(
82  'localizationMode' => 'select',
83  ),
84  )
85  ),
86  ),
87  'types' => array(
88  '0' => Array('showitem' =>
89  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, branches;;;;3-3-3,' .
90  '--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'
91  )
92  ),
93  'palettes' => array(
94  '1' => Array('showitem' => '')
95  )
96 );
97 
98 
99 
100 $TCA['tx_irretutorial_mnsym_hotel_rel'] = array(
101  'ctrl' => $TCA['tx_irretutorial_mnsym_hotel_rel']['ctrl'],
102  'interface' => array(
103  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,hotelsort,offersort'
104  ),
105  'feInterface' => $TCA['tx_irretutorial_mnsym_hotel_rel']['feInterface'],
106  'columns' => array(
107  'sys_language_uid' => array(
108  'exclude' => 1,
109  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
110  'config' => array(
111  'type' => 'select',
112  'foreign_table' => 'sys_language',
113  'foreign_table_where' => 'ORDER BY sys_language.title',
114  'items' => array(
115  array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
116  array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
117  )
118  )
119  ),
120  'l18n_parent' => array(
121  'displayCond' => 'FIELD:sys_language_uid:>:0',
122  'exclude' => 1,
123  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
124  'config' => array(
125  'type' => 'select',
126  'items' => array(
127  array('', 0),
128  ),
129  'foreign_table' => 'tx_irretutorial_mnsym_hotel_rel',
130  'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_hotel_rel.sys_language_uid IN (-1,0)',
131  )
132  ),
133  'l18n_diffsource' => array(
134  'config' => array(
135  'type' => 'passthrough'
136  )
137  ),
138  'hidden' => array(
139  'exclude' => 1,
140  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
141  'config' => array(
142  'type' => 'check',
143  'default' => '0'
144  )
145  ),
146  'hotelid' => array(
147  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_rel.hotelid',
148  'config' => array(
149  'type' => 'select',
150  'foreign_table' => 'tx_irretutorial_mnsym_hotel',
151  'maxitems' => 1,
152  'localizeReferences' => 1,
153  )
154  ),
155  'branchid' => array(
156  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_rel.branchid',
157  'config' => array(
158  'type' => 'select',
159  'foreign_table' => 'tx_irretutorial_mnsym_hotel',
160  'maxitems' => 1,
161  'localizeReferences' => 1,
162  )
163  ),
164  'hotelsort' => array(
165  'config' => array(
166  'type' => 'passthrough',
167  )
168  ),
169  'branchsort' => array(
170  'config' => array(
171  'type' => 'passthrough',
172  )
173  ),
174  ),
175  'types' => array(
176  '0' => Array('showitem' =>
177  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title;;;;2-2-2, hotelid;;;;3-3-3, branchid,' .
178  '--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, hotelsort, branchsort'
179  )
180  ),
181  'palettes' => array(
182  '1' => Array('showitem' => '')
183  )
184 );
185 ?>
if(!defined('TYPO3_MODE')) $TCA['tx_irretutorial_mnsym_hotel']
Definition: tca.mnsym.php:6
die
Definition: index.php:6