TYPO3 CMS  TYPO3_6-2
sys_workspace.php
Go to the documentation of this file.
1 <?php
2 return array(
3  'ctrl' => array(
4  'label' => 'title',
5  'tstamp' => 'tstamp',
6  'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace',
7  'adminOnly' => 1,
8  'rootLevel' => 1,
9  'delete' => 'deleted',
10  'iconfile' => 'sys_workspace.png',
11  'typeicon_classes' => array(
12  'default' => 'mimetypes-x-sys_workspace'
13  ),
14  'versioningWS_alwaysAllowLiveEdit' => TRUE,
15  'dividers2tabs' => TRUE
16  ),
17  'columns' => array(
18  'title' => array(
19  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title',
20  'config' => array(
21  'type' => 'input',
22  'size' => '20',
23  'max' => '30',
24  'eval' => 'required,trim,unique'
25  )
26  ),
27  'description' => array(
28  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
29  'config' => array(
30  'type' => 'text',
31  'rows' => 5,
32  'cols' => 30
33  )
34  ),
35  'adminusers' => array(
36  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.adminusers',
37  'config' => array(
38  'type' => 'group',
39  'internal_type' => 'db',
40  'allowed' => 'be_users,be_groups',
41  'prepend_tname' => 1,
42  'size' => '3',
43  'maxitems' => '10',
44  'autoSizeMax' => 10,
45  'show_thumbs' => '1',
46  'wizards' => array(
47  'suggest' => array(
48  'type' => 'suggest'
49  )
50  )
51  )
52  ),
53  'members' => array(
54  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.members',
55  'config' => array(
56  'type' => 'group',
57  'internal_type' => 'db',
58  'allowed' => 'be_users,be_groups',
59  'prepend_tname' => 1,
60  'size' => '3',
61  'maxitems' => '100',
62  'autoSizeMax' => 10,
63  'show_thumbs' => '1',
64  'wizards' => array(
65  'suggest' => array(
66  'type' => 'suggest'
67  )
68  )
69  )
70  ),
71  'db_mountpoints' => array(
72  'label' => 'LLL:EXT:lang/locallang_tca.xlf:db_mountpoints',
73  'config' => array(
74  'type' => 'group',
75  'internal_type' => 'db',
76  'allowed' => 'pages',
77  'size' => '3',
78  'maxitems' => 25,
79  'autoSizeMax' => 10,
80  'show_thumbs' => '1',
81  'wizards' => array(
82  'suggest' => array(
83  'type' => 'suggest'
84  )
85  )
86  )
87  ),
88  'file_mountpoints' => array(
89  'label' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints',
90  'config' => array(
91  'type' => 'select',
92  'foreign_table' => 'sys_filemounts',
93  'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
94  'size' => '3',
95  'maxitems' => 25,
96  'autoSizeMax' => 10,
97  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
98  'iconsInOptionTags' => 1
99  )
100  ),
101  'publish_time' => array(
102  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_time',
103  'config' => array(
104  'type' => 'input',
105  'size' => '8',
106  'max' => '20',
107  'eval' => 'datetime',
108  'default' => '0',
109  'checkbox' => '0'
110  )
111  ),
112  'unpublish_time' => array(
113  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.unpublish_time',
114  'config' => array(
115  'type' => 'input',
116  'size' => '8',
117  'max' => '20',
118  'eval' => 'datetime',
119  'checkbox' => '0',
120  'default' => '0',
121  'range' => array(
122  'upper' => mktime(0, 0, 0, 12, 31, 2020)
123  )
124  ),
125  'displayCond' => 'FALSE'
126  ),
127  'freeze' => array(
128  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.freeze',
129  'config' => array(
130  'type' => 'check',
131  'default' => '0'
132  )
133  ),
134  'live_edit' => array(
135  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.live_edit',
136  'config' => array(
137  'type' => 'check',
138  'default' => '0'
139  )
140  ),
141  'disable_autocreate' => array(
142  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.disable_autocreate',
143  'config' => array(
144  'type' => 'check',
145  'default' => '0'
146  )
147  ),
148  'swap_modes' => array(
149  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.swap_modes',
150  'config' => array(
151  'type' => 'select',
152  'items' => array(
153  array('', 0),
154  array('Swap-Into-Workspace on Auto-publish', 1),
155  array('Disable Swap-Into-Workspace', 2)
156  )
157  )
158  ),
159  'publish_access' => array(
160  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_access',
161  'config' => array(
162  'type' => 'check',
163  'items' => array(
164  array('Publish only content in publish stage', 0),
165  array('Only workspace owner can publish', 0)
166  )
167  )
168  ),
169  'stagechg_notification' => array(
170  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.stagechg_notification',
171  'config' => array(
172  'type' => 'select',
173  'items' => array(
174  array('', 0),
175  array('Notify users on next stage only', 1),
176  array('Notify all users on any change', 10)
177  )
178  )
179  ),
180  'custom_stages' => array(
181  'exclude' => 1,
182  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
183  'config' => array(
184  'type' => 'inline',
185  'foreign_table' => 'sys_workspace_stage',
186  'appearance' => 'useSortable,expandSingle',
187  'foreign_field' => 'parentid',
188  'foreign_table_field' => 'parenttable',
189  'minitems' => 0
190  ),
191  'default' => 0
192  ),
193  'edit_notification_mode' => array(
194  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_mode',
195  'config' => array(
196  'type' => 'select',
197  'items' => array(
198  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
199  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
200  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
201  )
202  )
203  ),
204  'edit_notification_defaults' => array(
205  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_defaults',
206  'displayCond' => 'FIELD:edit_notification_mode:IN:0,1',
207  'config' => array(
208  'type' => 'group',
209  'internal_type' => 'db',
210  'allowed' => 'be_users,be_groups',
211  'prepend_tname' => 1,
212  'size' => '3',
213  'maxitems' => '100',
214  'autoSizeMax' => 20,
215  'show_thumbs' => '1',
216  'wizards' => array(
217  'suggest' => array(
218  'type' => 'suggest'
219  )
220  )
221  )
222  ),
223  'edit_allow_notificaton_settings' => array(
224  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_allow_notificaton_settings',
225  'config' => array(
226  'type' => 'check',
227  'default' => 1
228  )
229  ),
230  'publish_notification_mode' => array(
231  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_mode',
232  'config' => array(
233  'type' => 'select',
234  'items' => array(
235  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
236  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
237  array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
238  )
239  )
240  ),
241  'publish_notification_defaults' => array(
242  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_defaults',
243  'displayCond' => 'FIELD:publish_notification_mode:IN:0,1',
244  'config' => array(
245  'type' => 'group',
246  'internal_type' => 'db',
247  'allowed' => 'be_users,be_groups',
248  'prepend_tname' => 1,
249  'size' => '3',
250  'maxitems' => '100',
251  'autoSizeMax' => 20,
252  'show_thumbs' => '1',
253  'wizards' => array(
254  'suggest' => array(
255  'type' => 'suggest'
256  )
257  )
258  )
259  ),
260  'publish_allow_notificaton_settings' => array(
261  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_allow_notificaton_settings',
262  'config' => array(
263  'type' => 'check',
264  'default' => 1
265  )
266  )
267  ),
268  'types' => array(
269  '0' => array('showitem' => 'title,description,
270  --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.users,adminusers,members,
271  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,stagechg_notification,edit_notification_mode,edit_notification_defaults,edit_allow_notificaton_settings,publish_notification_mode,publish_notification_defaults,publish_allow_notificaton_settings,
272  --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
273  --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
274  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,custom_stages,
275  --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.other,freeze,live_edit,disable_autocreate,swap_modes,publish_access')
276  )
277 );
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]