79f2ab28055ad115f5f044fb83b149f4df8686a5
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / Blog.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 $TCA['tx_blogexample_domain_model_blog'] = array(
5 'ctrl' => $TCA['tx_blogexample_domain_model_blog']['ctrl'],
6 'interface' => array(
7 'showRecordFieldList' => 'title, posts, administrator'
8 ),
9 'columns' => array(
10 'sys_language_uid' => Array (
11 'exclude' => 1,
12 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
13 'config' => Array (
14 'type' => 'select',
15 'foreign_table' => 'sys_language',
16 'foreign_table_where' => 'ORDER BY sys_language.title',
17 'items' => Array(
18 Array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages',-1),
19 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
20 )
21 )
22 ),
23 'l18n_parent' => Array (
24 'displayCond' => 'FIELD:sys_language_uid:>:0',
25 'exclude' => 1,
26 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
27 'config' => Array (
28 'type' => 'select',
29 'items' => Array (
30 Array('', 0),
31 ),
32 'foreign_table' => 'tx_blogexample_domain_model_blog',
33 '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)',
34 )
35 ),
36 'l18n_diffsource' => Array(
37 'config'=>array(
38 'type'=>'passthrough'
39 )
40 ),
41 't3ver_label' => Array (
42 'displayCond' => 'FIELD:t3ver_label:REQ:true',
43 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
44 'config' => Array (
45 'type'=>'none',
46 'cols' => 27
47 )
48 ),
49 'hidden' => array(
50 'exclude' => 1,
51 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
52 'config' => array(
53 'type' => 'check'
54 )
55 ),
56 'title' => array(
57 'exclude' => 0,
58 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
59 'config' => array(
60 'type' => 'input',
61 'size' => 20,
62 'eval' => 'trim,required',
63 'max' => 256
64 )
65 ),
66 'description' => array(
67 'exclude' => 1,
68 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
69 'config' => array(
70 'type' => 'text',
71 'eval' => 'required',
72 'rows' => 30,
73 'cols' => 80,
74 )
75 ),
76 'logo' => array(
77 'exclude' => 1,
78 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
79 'config' => array(
80 'type' => 'group',
81 'internal_type' => 'file',
82 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
83 'max_size' => 3000,
84 'uploadfolder' => 'uploads/pics',
85 'show_thumbs' => 1,
86 'size' => 1,
87 'maxitems' => 1,
88 'minitems' => 0
89 )
90 ),
91 'posts' => array(
92 'exclude' => 1,
93 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
94 'config' => array(
95 'type' => 'inline',
96 'foreign_table' => 'tx_blogexample_domain_model_post',
97 'foreign_field' => 'blog',
98 'foreign_sortby' => 'sorting',
99 'maxitems' => 999999,
100 'appearance' => array(
101 'collapseAll' => 1,
102 'expandSingle' => 1,
103 ),
104 )
105 ),
106 'administrator' => Array (
107 'exclude' => 1,
108 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
109 'config' => Array (
110 'type' => 'select',
111 'foreign_table' => 'fe_users',
112 'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
113 'items' => array(
114 array('--none--', 0),
115 ),
116 'wizards' => Array(
117 '_VERTICAL' => 1,
118 'edit' => Array(
119 'type' => 'popup',
120 'title' => 'Edit',
121 'script' => 'wizard_edit.php',
122 'icon' => 'edit2.gif',
123 'popup_onlyOpenIfSelected' => 1,
124 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
125 ),
126 'add' => Array(
127 'type' => 'script',
128 'title' => 'Create new',
129 'icon' => 'add.gif',
130 'params' => Array(
131 'table'=>'fe_users',
132 'pid' => '###CURRENT_PID###',
133 'setValue' => 'prepend'
134 ),
135 'script' => 'wizard_add.php',
136 ),
137 )
138 )
139 ),
140 ),
141 'types' => array(
142 '1' => array('showitem' => 'sys_language_uid, hidden, title, description, logo, posts, administrator')
143 ),
144 'palettes' => array(
145 '1' => array('showitem' => '')
146 )
147 );