Merge "[FEATURE] Add possibility for improved detail view"
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_localconf.php
1 <?php
2
3 if (!defined ('TYPO3_MODE')) {
4 die ('Access denied.');
5 }
6 if(TYPO3_MODE == 'BE') {
7 $workspaceSelectorToolbarItemClassPath = t3lib_extMgm::extPath('workspaces', 'Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php');
8
9 $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = $workspaceSelectorToolbarItemClassPath;
10
11 }
12 // Register the autopublishing task
13 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_Workspaces_Service_AutoPublishTask'] = array(
14 'extension' => $_EXTKEY,
15 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:autopublishTask.name',
16 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:autopublishTask.description'
17 );
18
19 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['workspaces'] = 'EXT:workspaces/Classes/Service/Tcemain.php:tx_Workspaces_Service_Tcemain';
20 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['viewOnClickClass']['workspaces'] = 'EXT:workspaces/Classes/Service/Befunc.php:tx_Workspaces_Service_Befunc';
21 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['workspaces'] = 'EXT:workspaces/Classes/Service/Fehooks.php:tx_Workspaces_Service_Fehooks->hook_eofe';
22
23 // Register workspaces cache if not already done in localconf.php or a previously loaded extension.
24 // We do not set frontend and backend: The cache manager uses t3lib_cache_frontend_VariableFrontend
25 // as frontend and t3lib_cache_backend_DbBackend as backend by default if not set otherwise. This
26 // is perfectly fine for the workspaces_cache.
27 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['workspaces_cache'])) {
28 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['workspaces_cache'] = array();
29 }
30
31 t3lib_extMgm::addUserTSConfig('options.workspaces.considerReferences = 1');
32
33 ?>