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