TYPO3 CMS  TYPO3_8-7
tx_blogexample_domain_model_blog.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog',
5  'label' => 'title',
6  'tstamp' => 'tstamp',
7  'crdate' => 'crdate',
8  'versioningWS' => true,
9  'origUid' => 't3_origuid',
10  'languageField' => 'sys_language_uid',
11  'transOrigPointerField' => 'l18n_parent',
12  'transOrigDiffSourceField' => 'l18n_diffsource',
13  'delete' => 'deleted',
14  'enablecolumns' => [
15  'disabled' => 'hidden',
16  'fe_group' => 'fe_group',
17  ],
18  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif'
19  ],
20  'interface' => [
21  'showRecordFieldList' => 'title, posts, administrator'
22  ],
23  'columns' => [
24  'sys_language_uid' => [
25  'exclude' => true,
26  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
27  'config' => [
28  'type' => 'select',
29  'renderType' => 'selectSingle',
30  'foreign_table' => 'sys_language',
31  'foreign_table_where' => 'ORDER BY sys_language.title',
32  'items' => [
33  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
34  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
35  ],
36  'default' => 0
37  ]
38  ],
39  'l18n_parent' => [
40  'displayCond' => 'FIELD:sys_language_uid:>:0',
41  'exclude' => true,
42  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
43  'config' => [
44  'type' => 'select',
45  'renderType' => 'selectSingle',
46  'items' => [
47  ['', 0],
48  ],
49  'foreign_table' => 'tx_blogexample_domain_model_blog',
50  'foreign_table_where' => 'AND tx_blogexample_domain_model_blog.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_blog.sys_language_uid IN (-1,0)',
51  ]
52  ],
53  'l18n_diffsource' => [
54  'config'=>[
55  'type' => 'passthrough',
56  'default' => ''
57  ]
58  ],
59  't3ver_label' => [
60  'displayCond' => 'FIELD:t3ver_label:REQ:true',
61  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
62  'config' => [
63  'type'=>'none',
64  'cols' => 27
65  ]
66  ],
67  'hidden' => [
68  'exclude' => true,
69  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
70  'config' => [
71  'type' => 'check'
72  ]
73  ],
74  'fe_group' => [
75  'exclude' => true,
76  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
77  'config' => [
78  'type' => 'select',
79  'renderType' => 'selectMultipleSideBySide',
80  'size' => 5,
81  'maxitems' => 20,
82  'items' => [
83  [
84  'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
85  -1,
86  ],
87  [
88  'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
89  -2,
90  ],
91  [
92  'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
93  '--div--',
94  ],
95  ],
96  'exclusiveKeys' => '-1,-2',
97  'foreign_table' => 'fe_groups',
98  'foreign_table_where' => 'ORDER BY fe_groups.title',
99  ],
100  ],
101  'title' => [
102  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
103  'config' => [
104  'type' => 'input',
105  'size' => 20,
106  'eval' => 'trim,required',
107  'max' => 256
108  ]
109  ],
110  'subtitle' => [
111  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.subtitle',
112  'config' => [
113  'type' => 'input',
114  'size' => 20,
115  'eval' => 'trim',
116  'max' => 256
117  ]
118  ],
119  'description' => [
120  'exclude' => true,
121  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
122  'config' => [
123  'type' => 'text',
124  'eval' => 'required',
125  'rows' => 30,
126  'cols' => 80,
127  ]
128  ],
129  'logo' => [
130  'exclude' => true,
131  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
132  'config' => [
133  'type' => 'group',
134  'internal_type' => 'file',
135  'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
136  'max_size' => 3000,
137  'uploadfolder' => 'uploads/pics',
138  'size' => 1,
139  'maxitems' => 1,
140  'minitems' => 0
141  ]
142  ],
143  'posts' => [
144  'exclude' => true,
145  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
146  'config' => [
147  'type' => 'inline',
148  'foreign_table' => 'tx_blogexample_domain_model_post',
149  'foreign_field' => 'blog',
150  'foreign_sortby' => 'sorting',
151  'appearance' => [
152  'collapseAll' => 1,
153  'expandSingle' => 1,
154  ],
155  ]
156  ],
157  'administrator' => [
158  'exclude' => true,
159  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
160  'config' => [
161  'type' => 'select',
162  'renderType' => 'selectSingle',
163  'foreign_table' => 'fe_users',
164  'foreign_table_where' => "AND fe_users.tx_extbase_type='ExtbaseTeam\\\\BlogExample\\\\Domain\\\\Model\\\\Administrator'",
165  'items' => [
166  ['--none--', 0],
167  ],
168  'fieldControl' => [
169  'editPopup' => [
170  'disabled' => false,
171  ],
172  'addRecord' => [
173  'disabled' => false,
174  'options' => [
175  'setValue' => 'prepend',
176  ],
177  ],
178  ],
179  ],
180  ],
181  ],
182  'types' => [
183  '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
184  ],
185  'palettes' => [
186  '1' => ['showitem' => '']
187  ]
188 ];
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']