Added feature #11927: Use suggest feature in system extensions
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_action / tca.php
1 <?php
2
3 // ******************************************************************
4 // sys_action
5 // ******************************************************************
6 $TCA['sys_action'] = Array (
7 'ctrl' => $TCA['sys_action']['ctrl'],
8 'interface' => Array (
9 'showRecordFieldList' => 'hidden,title,type,description,assign_to_groups'
10 ),
11 'columns' => Array (
12 'title' => Array (
13 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
14 'config' => Array (
15 'type' => 'input',
16 'size' => '25',
17 'max' => '256',
18 'eval' => 'trim,required'
19 )
20 ),
21 'description' => Array (
22 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
23 'config' => Array (
24 'type' => 'text',
25 'rows' => 10,
26 'cols' => 48
27 )
28 ),
29 'hidden' => Array (
30 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.hidden',
31 'config' => Array (
32 'type' => 'check'
33 )
34 ),
35 'type' => Array (
36 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
37 'config' => Array (
38 'type' => 'select',
39 'items' => Array (
40 Array('', '0'),
41 Array('Create Backend User', '1'),
42 Array('SQL-query', '2'),
43 Array('Record list', '3'),
44 Array('Edit records', '4'),
45 Array('New Record', '5')
46 )
47 )
48 ),
49 'assign_to_groups' => Array (
50 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.assign_to_groups',
51 'config' => Array (
52 'type' => 'select',
53 'foreign_table' => 'be_groups',
54 'foreign_table_where' => 'ORDER BY be_groups.title',
55 'MM' => 'sys_action_asgr_mm',
56 'size' => '5',
57 'minitems' => '0',
58 'maxitems' => '200'
59 )
60 ),
61 't1_userprefix' => Array (
62 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_userprefix',
63 'config' => Array (
64 'type' => 'input',
65 'size' => '25',
66 'max' => '10',
67 'eval' => 'trim'
68 )
69 ),
70 't1_allowed_groups' => Array (
71 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_allowed_groups',
72 'config' => Array (
73 'type' => 'select',
74 'foreign_table' => 'be_groups',
75 'foreign_table_where' => 'ORDER BY be_groups.title',
76 'size' => '2',
77 'maxitems' => '20'
78 )
79 ),
80 't1_create_user_dir' => Array (
81 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_create_user_dir',
82 'config' => Array (
83 'type' => 'check'
84 )
85 ),
86 't1_copy_of_user' => Array (
87 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_copy_of_user',
88 'config' => Array (
89 'type' => 'group',
90 'internal_type' => 'db',
91 'allowed' => 'be_users',
92 'size' => '1',
93 'maxitems' => '1',
94 'minitems' => '1',
95 'show_thumbs' => '1',
96 'wizards' => array(
97 'suggest' => array(
98 'type' => 'suggest',
99 )
100 )
101 )
102 ),
103 't3_listPid' => Array (
104 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t3_listPid',
105 'config' => Array (
106 'type' => 'group',
107 'internal_type' => 'db',
108 'allowed' => 'pages',
109 'size' => '1',
110 'maxitems' => '1',
111 'minitems' => '1',
112 'show_thumbs' => '1',
113 'wizards' => array(
114 'suggest' => array(
115 'type' => 'suggest',
116 )
117 )
118 )
119 ),
120 't3_tables' => Array (
121 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t3_tables',
122 'config' => Array (
123 'type' => 'select',
124 'special' => 'tables',
125 'items' => Array (
126 Array('','')
127 )
128 )
129 ),
130 't4_recordsToEdit' => Array (
131 'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t4_recordsToEdit',
132 'config' => Array (
133 'type' => 'group',
134 'internal_type' => 'db',
135 'allowed' => '*',
136 'prepend_tname' => 1,
137 'size' => '5',
138 'maxitems' => '50',
139 'minitems' => '1',
140 'show_thumbs' => '1',
141 'wizards' => array(
142 'suggest' => array(
143 'type' => 'suggest',
144 )
145 )
146 )
147 ),
148
149 ),
150 'types' => Array (
151 '0' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2'),
152 '1' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t1_userprefix;;;;5-5-5,t1_copy_of_user,t1_allowed_groups,t1_create_user_dir'),
153 '2' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,'),
154 '3' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;;;;5-5-5,t3_tables;'),
155 '4' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t4_recordsToEdit;;;;5-5-5'),
156 '5' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;Where to create records:;;;5-5-5,t3_tables;Create records in table:'),
157 )
158 );
159 ?>