本文整理汇总了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManagementUtility::addCoreNavigationComponent方法的具体用法?PHP ExtensionManagementUtility::addCoreNavigationComponent怎么用?PHP ExtensionManagementUtility::addCoreNavigationComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\ExtensionManagementUtility
的用法示例。
在下文中一共展示了ExtensionManagementUtility::addCoreNavigationComponent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$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');
示例2: defined
<?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/');