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