[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / tx_blogexample_domain_model_tag.php
1 <?php
2
3 return array(
4 'ctrl' => array(
5 'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag',
6 'label' => 'name',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'delete' => 'deleted',
10 'enablecolumns' => array(
11 'disabled' => 'hidden'
12 ),
13 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_tag.gif'
14 ),
15 'interface' => array(
16 'showRecordFieldList' => 'hidden, name, posts'
17 ),
18 'columns' => array(
19 'sys_language_uid' => array(
20 'exclude' => true,
21 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
22 'config' => array(
23 'type' => 'select',
24 'renderType' => 'selectSingle',
25 'foreign_table' => 'sys_language',
26 'foreign_table_where' => 'ORDER BY sys_language.title',
27 'items' => array(
28 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
29 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
30 ),
31 'default' => 0
32 )
33 ),
34 'l18n_parent' => array(
35 'displayCond' => 'FIELD:sys_language_uid:>:0',
36 'exclude' => true,
37 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
38 'config' => array(
39 'type' => 'select',
40 'renderType' => 'selectSingle',
41 'items' => array(
42 array('', 0),
43 ),
44 'foreign_table' => 'tx_blogexample_domain_model_tag',
45 'foreign_table_where' => 'AND tx_blogexample_domain_model_tag.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_tag.sys_language_uid IN (-1,0)',
46 )
47 ),
48 'hidden' => array(
49 'exclude' => true,
50 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
51 'config' => array(
52 'type' => 'check'
53 )
54 ),
55 'name' => array(
56 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.name',
57 'config' => array(
58 'type' => 'input',
59 'size' => 20,
60 'eval' => 'trim, required',
61 'max' => 256
62 )
63 ),
64 'posts' => array(
65 'exclude' => true,
66 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.posts',
67 'config' => array(
68 'type' => 'select',
69 'renderType' => 'selectMultipleSideBySide',
70 'size' => 10,
71 'minitems' => 0,
72 'maxitems' => 9999,
73 'autoSizeMax' => 30,
74 'multiple' => 0,
75 'foreign_table' => 'tx_blogexample_domain_model_post',
76 'MM' => 'tx_blogexample_post_tag_mm',
77 'MM_opposite_field' => 'tags',
78 )
79 ),
80 ),
81 'types' => array(
82 '1' => array('showitem' => 'sys_language_uid, hidden, name, posts')
83 ),
84 'palettes' => array(
85 '1' => array('showitem' => '')
86 )
87 );