3d57b5c6e38c4bf600a4b39a127c3dfbb9e58f0c
[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 [
4 'ctrl' => [
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' => [
11 'disabled' => 'hidden'
12 ],
13 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_tag.gif'
14 ],
15 'interface' => [
16 'showRecordFieldList' => 'hidden, name, posts'
17 ],
18 'columns' => [
19 'sys_language_uid' => [
20 'exclude' => true,
21 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
22 'config' => [
23 'type' => 'select',
24 'renderType' => 'selectSingle',
25 'foreign_table' => 'sys_language',
26 'foreign_table_where' => 'ORDER BY sys_language.title',
27 'items' => [
28 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
29 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
30 ],
31 'default' => 0
32 ]
33 ],
34 'l18n_parent' => [
35 'displayCond' => 'FIELD:sys_language_uid:>:0',
36 'exclude' => true,
37 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
38 'config' => [
39 'type' => 'select',
40 'renderType' => 'selectSingle',
41 'items' => [
42 ['', 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' => [
49 'exclude' => true,
50 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
51 'config' => [
52 'type' => 'check'
53 ]
54 ],
55 'name' => [
56 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.name',
57 'config' => [
58 'type' => 'input',
59 'size' => 20,
60 'eval' => 'trim, required',
61 'max' => 256
62 ]
63 ],
64 'posts' => [
65 'exclude' => true,
66 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.posts',
67 'config' => [
68 'type' => 'select',
69 'renderType' => 'selectMultipleSideBySide',
70 'size' => 10,
71 'minitems' => 0,
72 'autoSizeMax' => 30,
73 'multiple' => 0,
74 'foreign_table' => 'tx_blogexample_domain_model_post',
75 'MM' => 'tx_blogexample_post_tag_mm',
76 'MM_opposite_field' => 'tags',
77 ]
78 ],
79 ],
80 'types' => [
81 '1' => ['showitem' => 'sys_language_uid, hidden, name, posts']
82 ],
83 'palettes' => [
84 '1' => ['showitem' => '']
85 ]
86 ];