TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
tx_testdatahandler_element.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'DataHander Test Element',
5  'label' => 'title',
6  'tstamp' => 'tstamp',
7  'crdate' => 'crdate',
8  'cruser_id' => 'cruser_id',
9  'languageField' => 'sys_language_uid',
10  'transOrigPointerField' => 'l10n_parent',
11  'transOrigDiffSourceField' => 'l10n_diffsource',
12  'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
13  'sortby' => 'sorting',
14  'delete' => 'deleted',
15  'enablecolumns' => [
16  'disabled' => 'hidden',
17  ],
18  'versioningWS' => true,
19  'origUid' => 't3_origuid',
20  ],
21  'interface' => [
22  'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,title'
23  ],
24  'columns' => [
25  'sys_language_uid' => [
26  'exclude' => true,
27  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language',
28  'config' => [
29  'type' => 'select',
30  'foreign_table' => 'sys_language',
31  'foreign_table_where' => 'ORDER BY sys_language.title',
32  'items' => [
33  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.allLanguages', -1],
34  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.default_value', 0]
35  ],
36  'default' => 0
37  ]
38  ],
39  'l10n_parent' => [
40  'displayCond' => 'FIELD:sys_language_uid:>:0',
41  'exclude' => 1,
42  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent',
43  'config' => [
44  'type' => 'select',
45  'items' => [
46  ['', 0],
47  ],
48  'foreign_table' => 'tx_irretutorial_1nff_hotel',
49  'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
50  'default' => 0
51  ]
52  ],
53  'l10n_diffsource' => [
54  'config' => [
55  'type' => 'passthrough',
56  'default' => ''
57  ]
58  ],
59  'hidden' => [
60  'exclude' => true,
61  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
62  'config' => [
63  'type' => 'check',
64  'default' => 0
65  ]
66  ],
67  'title' => [
68  'exclude' => true,
69  'l10n_mode' => 'prefixLangTitle',
70  'label' => 'Title',
71  'config' => [
72  'type' => 'input',
73  'size' => 30,
74  'eval' => 'required',
75  ]
76  ],
77  ],
78  'types' => [
79  '0' => ['showitem' =>
80  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title,' .
81  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l10n_parent, l10n_diffsource, hidden;;1'
82  ]
83  ],
84  'palettes' => [
85  '1' => ['showitem' => '']
86  ]
87 ];