[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / irre_tutorial / Configuration / TCA / tx_irretutorial_1nff_hotel.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_1nff_hotel',
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_hotel.gif',
18 'versioningWS' => true,
19 'origUid' => 't3_origuid',
20 // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
21 // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
22 'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
23 ),
24 'interface' => array(
25 'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
26 ),
27 'columns' => array(
28 'sys_language_uid' => array(
29 'exclude' => true,
30 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
31 'config' => array(
32 'type' => 'select',
33 'renderType' => 'selectSingle',
34 'foreign_table' => 'sys_language',
35 'foreign_table_where' => 'ORDER BY sys_language.title',
36 'items' => array(
37 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
38 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
39 ),
40 'default' => 0
41 )
42 ),
43 'l18n_parent' => array(
44 'displayCond' => 'FIELD:sys_language_uid:>:0',
45 'exclude' => true,
46 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
47 'config' => array(
48 'type' => 'select',
49 'renderType' => 'selectSingle',
50 'items' => array(
51 array('', 0),
52 ),
53 'foreign_table' => 'tx_irretutorial_1nff_hotel',
54 'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
55 'default' => 0,
56 )
57 ),
58 'l18n_diffsource' => array(
59 'config' => array(
60 'type' => 'passthrough',
61 'default' => ''
62 )
63 ),
64 'hidden' => array(
65 'exclude' => true,
66 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
67 'config' => array(
68 'type' => 'check',
69 'default' => 0
70 )
71 ),
72 'parentid' => array(
73 'config' => array(
74 'type' => 'passthrough',
75 'default' => 0
76 )
77 ),
78 'parenttable' => array(
79 'config' => array(
80 'type' => 'passthrough',
81 'default' => ''
82 )
83 ),
84 'parentidentifier' => array(
85 'config' => array(
86 'type' => 'passthrough',
87 'default' => ''
88 )
89 ),
90 'title' => array(
91 'exclude' => true,
92 'l10n_mode' => 'prefixLangTitle',
93 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
94 'config' => array(
95 'type' => 'input',
96 'size' => 30,
97 'eval' => 'required',
98 )
99 ),
100 'offers' => array(
101 'exclude' => true,
102 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
103 'config' => array(
104 'type' => 'inline',
105 'foreign_table' => 'tx_irretutorial_1nff_offer',
106 'foreign_field' => 'parentid',
107 'foreign_table_field' => 'parenttable',
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 'localizeChildrenAtParentLocalization' => true,
118 ),
119 )
120 ),
121 ),
122 'types' => array(
123 '0' => array('showitem' =>
124 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers,' .
125 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1'
126 )
127 ),
128 'palettes' => array(
129 '1' => array('showitem' => '')
130 )
131 );