Exemple #1
0
$GLOBALS['PAGES_TYPES'] = array((string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array('type' => 'web', 'allowedTables' => '*'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array('type' => 'sys'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array('type' => 'sys', 'allowedTables' => '*'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array('type' => 'sys', 'allowedTables' => '*'), 'default' => array('type' => 'web', 'allowedTables' => 'pages', 'onlyAllowedTables' => '0'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category,sys_file_reference,sys_file_collection');
/** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class);
$registry->addDriversToTCA();
/**
 * $TBE_MODULES contains the structure of the backend modules as they are
 * arranged in main- and sub-modules. Every entry in this array represents a
 * menu item on either first (key) or second level (value from list) in the
 * left menu in the TYPO3 backend
 * For information about adding modules to TYPO3 you should consult the
 * documentation found in "Inside TYPO3"
 */
$GLOBALS['TBE_MODULES'] = array('web' => 'list', 'file' => '', 'user' => '', 'tools' => '', 'system' => '', 'help' => '', '_configuration' => array('web' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'), 'name' => 'web', 'iconIdentifier' => 'module-web'), 'file' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'), 'navigationFrameModule' => 'file_navframe', 'name' => 'file', 'workspaces' => 'online,custom', 'iconIdentifier' => 'module-file'), 'user' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'), 'name' => 'user', 'iconIdentifier' => 'status-user-backend'), 'tools' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'), 'name' => 'tools', 'iconIdentifier' => 'module-tools'), 'system' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'), 'name' => 'system', 'iconIdentifier' => 'module-system'), 'help' => array('labels' => array('ll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'), 'name' => 'help', 'iconIdentifier' => 'module-help')));
// Register the page tree core navigation component
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
/**
 * $TBE_STYLES configures backend styles and colors; Basically this contains
 * all the values that can be used to create new skins for TYPO3.
 * For information about making skins to TYPO3 you should consult the
 * documentation found in "Inside TYPO3"
 */
$GLOBALS['TBE_STYLES'] = array('skinImg' => array());
/**
 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
 * For information about using the CSH API in TYPO3 you should consult the
 * documentation found in "Inside TYPO3"
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
Exemple #2
0
<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    // Register record edit module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('record_edit', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/FormEngine/');
    // Register record history module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('record_history', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/RecordHistory/');
    // Register login frameset
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('login_frameset', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/LoginFrameset/');
    // Register logout
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('logout', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Logout/');
    // Register file_navframe
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('file', 'file_navframe');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('file_navframe', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/FileSystemNavigationFrame/');
    // Register file_edit
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('file_edit', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Edit/');
    // Register file_newfolder
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('file_newfolder', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Newfolder/');
    // Register file_rename
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('file_rename', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Rename/');
    // Register file_rename
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('file_upload', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Upload/');
    // Register tce_db
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('tce_db', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Database/');
    // Register tce_file
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('tce_file', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Administration/');
    // Register edit wizard
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('wizard_edit', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/EditWizard/');
    // Register add wizard
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('wizard_add', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/AddWizard/');