[FEATURE] Make displayed fields in "Send to stage" layer configurable
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5 // avoid that this block is loaded in the frontend or within the upgrade-wizards
6 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
7 /**
8 * Registers a Backend Module
9 */
10 Tx_Extbase_Utility_Extension::registerModule(
11 $_EXTKEY,
12 'web', // Make module a submodule of 'web'
13 'workspaces', // Submodule key
14 'before:info', // Position
15 array(
16 // An array holding the controller-action-combinations that are accessible
17 'Review' => 'index,fullIndex,singleIndex',
18 'Preview' => 'index,newPage'
19 ),
20 array(
21 'access' => 'user,group',
22 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
23 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml',
24 'navigationComponentId' => 'typo3-pagetree',
25 )
26 );
27
28 // register ExtDirect
29 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:tx_Workspaces_ExtDirect_Server';
30 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:tx_Workspaces_ExtDirect_ActionHandler';
31 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectMassActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:tx_Workspaces_ExtDirect_MassActionHandler';
32 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Ajax.ExtDirect.ToolbarMenu'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:tx_Workspaces_ExtDirect_ToolbarMenu';
33
34 // register the reports statusprovider
35 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'Tx_Workspaces_Reports_StatusProvider';
36
37
38 }
39
40 /**
41 * Table "sys_workspace":
42 */
43 $TCA['sys_workspace'] = array(
44 'ctrl' => array(
45 'label' => 'title',
46 'tstamp' => 'tstamp',
47 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace',
48 'adminOnly' => 1,
49 'rootLevel' => 1,
50 'delete' => 'deleted',
51 'iconfile' => 'sys_workspace.png',
52 'typeicon_classes' => array(
53 'default' => 'mimetypes-x-sys_workspace'
54 ),
55 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
56 'versioningWS_alwaysAllowLiveEdit' => TRUE,
57 'dividers2tabs' => TRUE
58 )
59 );
60
61 /**
62 * Table "sys_workspace_stage":
63 * Defines single custom stages which are related to sys_workspace table to create complex working processes
64 * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
65 */
66 $TCA['sys_workspace_stage'] = array(
67 'ctrl' => array(
68 'label' => 'title',
69 'tstamp' => 'tstamp',
70 'sortby' => 'sorting',
71 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage',
72 'adminOnly' => 1,
73 'rootLevel' => 1,
74 'hideTable' => TRUE,
75 'delete' => 'deleted',
76 'iconfile' => 'sys_workspace.png',
77 'typeicon_classes' => array(
78 'default' => 'mimetypes-x-sys_workspace'
79 ),
80 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
81 'versioningWS_alwaysAllowLiveEdit' => TRUE,
82 'dividers2tabs' => TRUE
83 )
84 );
85 // todo move icons to Core sprite or keep them here and remove the todo note ;)
86 $icons = array(
87 'sendtonextstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
88 'sendtoprevstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
89 'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png',
90 );
91 t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
92 t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage','EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
93
94
95 ?>