TYPO3 CMS  TYPO3_7-6
Blog.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 $TCA['tx_blogexample_domain_model_blog'] = [
5  'ctrl' => $TCA['tx_blogexample_domain_model_blog']['ctrl'],
6  'interface' => [
7  'showRecordFieldList' => 'title, posts, administrator'
8  ],
9  'columns' => [
10  'sys_language_uid' => [
11  'exclude' => 1,
12  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
13  'config' => [
14  'type' => 'select',
15  'renderType' => 'selectSingle',
16  'foreign_table' => 'sys_language',
17  'foreign_table_where' => 'ORDER BY sys_language.title',
18  'items' => [
19  ['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
20  ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]
21  ],
22  'default' => 0
23  ]
24  ],
25  'l18n_parent' => [
26  'displayCond' => 'FIELD:sys_language_uid:>:0',
27  'exclude' => 1,
28  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
29  'config' => [
30  'type' => 'select',
31  'renderType' => 'selectSingle',
32  'items' => [
33  ['', 0],
34  ],
35  'foreign_table' => 'tx_blogexample_domain_model_blog',
36  '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)',
37  ]
38  ],
39  'l18n_diffsource' => [
40  'config'=>[
41  'type' => 'passthrough',
42  'default' => ''
43  ]
44  ],
45  't3ver_label' => [
46  'displayCond' => 'FIELD:t3ver_label:REQ:true',
47  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
48  'config' => [
49  'type'=>'none',
50  'cols' => 27
51  ]
52  ],
53  'hidden' => [
54  'exclude' => 1,
55  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
56  'config' => [
57  'type' => 'check'
58  ]
59  ],
60  'fe_group' => [
61  'exclude' => 1,
62  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
63  'config' => [
64  'type' => 'select',
65  'renderType' => 'selectMultipleSideBySide',
66  'size' => 5,
67  'maxitems' => 20,
68  'items' => [
69  [
70  'LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login',
71  -1,
72  ],
73  [
74  'LLL:EXT:lang/locallang_general.xlf:LGL.any_login',
75  -2,
76  ],
77  [
78  'LLL:EXT:lang/locallang_general.xlf:LGL.usergroups',
79  '--div--',
80  ],
81  ],
82  'exclusiveKeys' => '-1,-2',
83  'foreign_table' => 'fe_groups',
84  'foreign_table_where' => 'ORDER BY fe_groups.title',
85  ],
86  ],
87  'title' => [
88  'exclude' => 0,
89  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
90  'config' => [
91  'type' => 'input',
92  'size' => 20,
93  'eval' => 'trim,required',
94  'max' => 256
95  ]
96  ],
97  'description' => [
98  'exclude' => 1,
99  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
100  'config' => [
101  'type' => 'text',
102  'eval' => 'required',
103  'rows' => 30,
104  'cols' => 80,
105  ]
106  ],
107  'logo' => [
108  'exclude' => 1,
109  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
110  'config' => [
111  'type' => 'group',
112  'internal_type' => 'file',
113  'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
114  'max_size' => 3000,
115  'uploadfolder' => 'uploads/pics',
116  'show_thumbs' => 1,
117  'size' => 1,
118  'maxitems' => 1,
119  'minitems' => 0
120  ]
121  ],
122  'posts' => [
123  'exclude' => 1,
124  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
125  'config' => [
126  'type' => 'inline',
127  'foreign_table' => 'tx_blogexample_domain_model_post',
128  'foreign_field' => 'blog',
129  'foreign_sortby' => 'sorting',
130  'maxitems' => 999999,
131  'appearance' => [
132  'collapseAll' => 1,
133  'expandSingle' => 1,
134  ],
135  ]
136  ],
137  'administrator' => [
138  'exclude' => 1,
139  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
140  'config' => [
141  'type' => 'select',
142  'renderType' => 'selectSingle',
143  'foreign_table' => 'fe_users',
144  'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
145  'items' => [
146  ['--none--', 0],
147  ],
148  'wizards' => [
149  '_VERTICAL' => 1,
150  'edit' => [
151  'type' => 'popup',
152  'title' => 'Edit',
153  'script' => 'wizard_edit.php',
154  'icon' => 'actions-open',
155  'popup_onlyOpenIfSelected' => 1,
156  'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1',
157  ],
158  'add' => [
159  'type' => 'script',
160  'title' => 'Create new',
161  'icon' => 'actions-add',
162  'params' => [
163  'table'=>'fe_users',
164  'pid' => '###CURRENT_PID###',
165  'setValue' => 'prepend'
166  ],
167  'script' => 'wizard_add.php',
168  ],
169  ]
170  ]
171  ],
172  ],
173  'types' => [
174  '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
175  ],
176  'palettes' => [
177  '1' => ['showitem' => '']
178  ]
179 ];
$TCA['tx_blogexample_domain_model_blog']
Definition: Blog.php:4
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']