‪TYPO3CMS  10.4
tx_blogexample_domain_model_tag.php
Go to the documentation of this file.
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  'versioningWS' => true,
10  'languageField' => 'sys_language_uid',
11  'transOrigPointerField' => 'l18n_parent',
12  'transOrigDiffSourceField' => 'l18n_diffsource',
13  'delete' => 'deleted',
14  'enablecolumns' => [
15  'disabled' => 'hidden'
16  ],
17  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_tag.gif'
18  ],
19  'columns' => [
20  'sys_language_uid' => [
21  'exclude' => true,
22  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
23  'config' => [
24  'type' => 'select',
25  'renderType' => 'selectSingle',
26  'special' => 'languages',
27  'items' => [
28  [
29  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
30  -1,
31  'flags-multiple'
32  ],
33  ],
34  'default' => 0
35  ]
36  ],
37  'l18n_parent' => [
38  'displayCond' => 'FIELD:sys_language_uid:>:0',
39  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
40  'config' => [
41  'type' => 'select',
42  'renderType' => 'selectSingle',
43  'items' => [
44  ['', 0],
45  ],
46  'foreign_table' => 'tx_blogexample_domain_model_tag',
47  '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)',
48  ]
49  ],
50  'l18n_diffsource' => [
51  'config' => [
52  'type' => 'passthrough',
53  'default' => '',
54  ],
55  ],
56  'hidden' => [
57  'exclude' => true,
58  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
59  'config' => [
60  'type' => 'check'
61  ]
62  ],
63  'name' => [
64  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.name',
65  'config' => [
66  'type' => 'input',
67  'size' => 20,
68  'eval' => 'trim, required',
69  'max' => 256
70  ]
71  ],
72  'posts' => [
73  'exclude' => true,
74  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag.posts',
75  'config' => [
76  'type' => 'select',
77  'renderType' => 'selectMultipleSideBySide',
78  'size' => 10,
79  'minitems' => 0,
80  'autoSizeMax' => 30,
81  'multiple' => 0,
82  'foreign_table' => 'tx_blogexample_domain_model_post',
83  'MM' => 'tx_blogexample_post_tag_mm',
84  'MM_opposite_field' => 'tags',
85  ]
86  ],
87  ],
88  'types' => [
89  '1' => ['showitem' => 'sys_language_uid, hidden, name, posts']
90  ],
91  'palettes' => [
92  '1' => ['showitem' => '']
93  ]
94 ];