[BUGFIX] fix missing l18n fields in blog tag table
[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 'l18n_diffsource' => [
49 'config'=>[
50 'type' => 'passthrough',
51 'default' => '',
52 ],
53 ],
54 'hidden' => [
55 'exclude' => true,
56 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
57 'config' => [
58 'type' => 'check'
59 ]
60 ],
61 'name' => [
62 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.name',
63 'config' => [
64 'type' => 'input',
65 'size' => 20,
66 'eval' => 'trim, required',
67 'max' => 256
68 ]
69 ],
70 'posts' => [
71 'exclude' => true,
72 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.posts',
73 'config' => [
74 'type' => 'select',
75 'renderType' => 'selectMultipleSideBySide',
76 'size' => 10,
77 'minitems' => 0,
78 'autoSizeMax' => 30,
79 'multiple' => 0,
80 'foreign_table' => 'tx_blogexample_domain_model_post',
81 'MM' => 'tx_blogexample_post_tag_mm',
82 'MM_opposite_field' => 'tags',
83 ]
84 ],
85 ],
86 'types' => [
87 '1' => ['showitem' => 'sys_language_uid, hidden, name, posts']
88 ],
89 'palettes' => [
90 '1' => ['showitem' => '']
91 ]
92 ];