Ejemplo n.º 1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
    t3lib_extMgm::addModule('tools', 'em', '', t3lib_extMgm::extPath($_EXTKEY) . 'classes/');
    // register Ext.Direct
    $TYPO3_CONF_VARS['SC_OPTIONS']['ExtDirect']['TYPO3.EM.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'classes/connection/class.tx_em_connection_extdirectserver.php:tx_em_Connection_ExtDirectServer';
    $TYPO3_CONF_VARS['SC_OPTIONS']['ExtDirect']['TYPO3.EMSOAP.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'classes/connection/class.tx_em_connection_extdirectsoap.php:tx_em_Connection_ExtDirectSoap';
    // register reports check
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] = 'tx_em_reports_ExtensionStatus';
    $icons = array('extension-required' => t3lib_extMgm::extRelPath('em') . 'res/icons/extension-required.png');
    t3lib_SpriteManager::addSingleIcons($icons, 'em');
}
Ejemplo n.º 2
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// avoid that this block is loaded in the frontend or within the upgrade-wizards
if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    /**
     * Registers a Backend Module
     */
    Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'workspaces', 'before:info', array('Review' => 'index,fullIndex,singleIndex', 'Preview' => 'index,newPage'), array('access' => 'user,group', 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml', 'navigationComponentId' => 'typo3-pagetree'));
    // register ExtDirect
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:tx_Workspaces_ExtDirect_Server';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:tx_Workspaces_ExtDirect_ActionHandler';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectMassActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:tx_Workspaces_ExtDirect_MassActionHandler';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Ajax.ExtDirect.ToolbarMenu'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:tx_Workspaces_ExtDirect_ToolbarMenu';
    // register the reports statusprovider
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'Tx_Workspaces_Reports_StatusProvider';
}
/**
 * Table "sys_workspace":
 */
$TCA['sys_workspace'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace', 'adminOnly' => 1, 'rootLevel' => 1, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true, 'dividers2tabs' => true));
/**
 * Table "sys_workspace_stage":
 * Defines single custom stages which are related to sys_workspace table to create complex working processes
 * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
 */
$TCA['sys_workspace_stage'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'sortby' => 'sorting', 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage', 'adminOnly' => 1, 'rootLevel' => 1, 'hideTable' => TRUE, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true));
// todo move icons to Core sprite or keep them here and remove the todo note ;)
$icons = array('sendtonextstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png', 'sendtoprevstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png', 'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png');
t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
Ejemplo n.º 3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['tx_contexts_contexts'] = array('ctrl' => array('title' => 'LLL:EXT:contexts/Resources/Private/Language/locallang_db.xml:tx_contexts_contexts', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'disabled'), 'requestUpdate' => 'type', 'adminOnly' => 1, 'rootLevel' => -1, 'dividers2tabs' => 1, 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_contexts_contexts.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_contexts_contexts.type_conf.combination', 'EXT:contexts/Resources/Private/csh/Combination.xml');
require_once t3lib_extMgm::extPath($_EXTKEY) . 'tca.php';
if (TYPO3_MODE == 'BE') {
    //all other modes did load it already
    include_once t3lib_extMgm::extPath($_EXTKEY) . 'ext_contexts.php';
}
$dir = t3lib_extMgm::extRelPath($_EXTKEY);
$icons = array('status-overlay-contexts' => $dir . 'overlay-contexts.png');
t3lib_SpriteManager::addSingleIcons($icons, 'contexts');
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'][150] = 'contexts';
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames']['contexts'] = 'extensions-contexts-status-overlay-contexts';