当前位置: 首页>>代码示例>>PHP>>正文


PHP ExtensionManagementUtility::addUserTSConfig方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManagementUtility::addUserTSConfig方法的具体用法?PHP ExtensionManagementUtility::addUserTSConfig怎么用?PHP ExtensionManagementUtility::addUserTSConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Core\Utility\ExtensionManagementUtility的用法示例。


在下文中一共展示了ExtensionManagementUtility::addUserTSConfig方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addDoktype

 public static function addDoktype($extKey, $doktype, $iconName)
 {
     $customPageIcon = static::getCustomPageIcon($extKey, $iconName);
     // Add the new doktype to the list of page types
     $GLOBALS['PAGES_TYPES'][$doktype] = array('type' => 'web', 'icon' => $customPageIcon, 'allowedTables' => '*');
     // Add the icon for the new doktype
     \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', $doktype, $customPageIcon);
     // Add the new doktype to the list of types available from the new page menu at the top of the page tree
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $doktype . ')');
 }
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:10,代码来源:CustomPageUtility.php

示例2: addDoktype

 public static function addDoktype($extKey, $doktype, $iconName)
 {
     if (static::useCompatibility6()) {
         Compatibility6\CustomPageUtility::addDoktype($extKey, $doktype, $iconName);
         return;
     }
     // Add new page type:
     $GLOBALS['PAGES_TYPES'][$doktype] = array('type' => 'web', 'allowedTables' => '*');
     $identifier = 'apps-pagetree-' . strtolower($iconName);
     // Provide icon for page tree, list view, ... :
     $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Imaging\\IconRegistry');
     $iconRegistry->registerIcon($identifier, 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\SvgIconProvider', array('source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $identifier . '.svg'));
     $iconRegistry->registerIcon($identifier . '-hideinmenu', 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\SvgIconProvider', array('source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $identifier . '-hideinmenu.svg'));
     // Allow backend users to drag and drop the new page type:
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $doktype . ')');
 }
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:16,代码来源:CustomPageUtility.php

示例3: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Add TsConfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Resources/Private/TsConfig/Page/main.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Resources/Private/TsConfig/User/main.ts">');
// Add menu item to clear system cache for Development & Testing context
$context = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->__toString();
if ($context === 'Development' || $context === 'Testing') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.clearCache.system = 1');
}
// Modify flexform values
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'][$_EXTKEY] = 'GeorgRinger\\Theme\\Hooks\\Backend\\BackendUtilityHook';
// Backend layouts
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['file'] = 'GeorgRinger\\Theme\\View\\BackendLayout\\FileProvider';
unset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook']['TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook']);
开发者ID:jousch,项目名称:TYPO3.base,代码行数:18,代码来源:ext_localconf.php

示例4:

    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = '&Tx_Solr_GarbageCollector';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = '&Tx_Solr_GarbageCollector';
    // hooking into TCE Main to monitor record updates that may require reindexing by the index queue
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register click menu item to initialize the Solr connections for a single site
// visible for admin users only
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
[adminUser = 1]
options.contextMenu.table.pages.items.850 = ITEM
options.contextMenu.table.pages.items.850 {
	name = Tx_Solr_initializeSolrConnections
	label = Initialize Solr Connections
	icon = ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($GLOBALS['PATHrel_solr'] . 'Resources/Images/cache-init-solr-connections.png') . '
	displayCondition = getRecord|is_siteroot = 1
	callbackAction = initializeSolrConnections
}

options.contextMenu.table.pages.items.851 = DIVIDER
[global]
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent('TYPO3.Solr.ContextMenuActionController', $GLOBALS['PATHrel_solr'] . 'Classes/ContextMenuActionController.php:Tx_Solr_ContextMenuActionController', 'web', 'admin');
// include JS in backend
$GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems']['Solr.ContextMenuInitializeSolrConnectionsAction'] = $GLOBALS['PATH_solr'] . 'Classes/BackendItem/ContextMenuActionJavascriptRegistration.php';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// replace the built-in search content element
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Results.xml', 'search');
$TCA['tt_content']['types']['search']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
	--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
	--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin,
开发者ID:romaincanon,项目名称:ext-solr,代码行数:32,代码来源:ext_tables.php

示例5: unserialize

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['version'] = $EM_CONF['rtehtmlarea']['version'];
// Unserializing the configuration so we can use it here
$_EXTCONF = unserialize($_EXTCONF);
// Add default RTE transformation configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/PageTS/Proc/pageTSConfig.txt">');
// Add default Page TS Config RTE configuration
if (strstr($_EXTCONF['defaultConfiguration'], 'Minimal')) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['defaultConfiguration'] = 'Advanced';
} elseif (strstr($_EXTCONF['defaultConfiguration'], 'Demo')) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['defaultConfiguration'] = 'Demo';
} else {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['defaultConfiguration'] = 'Typical';
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/PageTS/' . $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['defaultConfiguration'] . '/pageTSConfig.txt">');
// Add default User TS Config RTE configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/UserTS/' . $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['defaultConfiguration'] . '/userTSConfig.txt">');
// Registering soft reference parser for image tags in RTE content
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['rtehtmlarea_images'] = \TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook::class;
// Add Status Report about Conflicting Extensions
if (TYPO3_MODE === 'BE') {
    // Take note of conflicting extensions
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['conflicts'] = $EM_CONF['rtehtmlarea']['constraints']['conflicts'];
    // Register Status Report Hook
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['htmlArea RTE'][] = \TYPO3\CMS\Rtehtmlarea\Hook\StatusReportConflictsCheckHook::class;
}
// Set warning in the Update Wizard of the Install Tool for deprecated Page TS Config properties
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['checkForDeprecatedRtePageTSConfigProperties'] = \TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::class;
// Set warning in the Update Wizard of the Install Tool for replacement of "acronym" button by "abbreviation" button
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['checkForRteAcronymButtonRenamedToAbbreviation'] = \TYPO3\CMS\Rtehtmlarea\Hook\Install\RteAcronymButtonRenamedToAbbreviation::class;
// Initialize plugin registration array
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins'] = array();
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:31,代码来源:ext_localconf.php

示例6: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['store_finder_coordinate'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['store_finder_coordinate'] = array('groups' => array('system'));
}
/**
 * Default PageTS
 */
/** @noinspection PhpUndefinedVariableInspection */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/ModWizards.ts">');
/** @noinspection PhpIncludeInspection */
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('store_finder') . 'Classes/Utility/ExtensionConfigurationUtility.php';
$configuration = \Evoweb\StoreFinder\Utility\ExtensionConfigurationUtility::getConfiguration();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
	options.saveDocNew.tx_storefinder_domain_model_location = 1
	options.saveDocNew.tx_storefinder_domain_model_category = 1
	options.saveDocNew.tx_storefinder_domain_model_attribute = 1
');
/** @noinspection PhpUndefinedVariableInspection */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Evoweb.' . $_EXTKEY, 'Map', array('Map' => 'map'), array('Map' => 'map'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['store_finder'] = 'EXT:store_finder/Classes/Hook/TceMainHook.php:Evoweb\\StoreFinder\\Hook\\TceMainHook';
// Add location geocodeing task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Evoweb\\StoreFinder\\Task\\GeocodeLocationsTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_be.xml:geocodeLocations.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_be.xml:geocodeLocations.description');
开发者ID:woodyc79,项目名称:store_finder,代码行数:26,代码来源:ext_localconf.php

示例7: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Controller/Controller.php', '_controller', 'list_type', 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_cal_event=1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_cal_exception_event=1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.conf.tx_cal_event = < plugin.tx_cal_controller
	tt_content.shortcut.20.conf.tx_cal_event {
		displayCurrentRecord = 1
		// If you don\'t want that this record is reacting on certain piVars, add those to this list. To clear all piVars, use keyword "all"
		clearPiVars = uid,getdate,type,view
		// If you want that this record doesn\'t react on any piVar or session-stored var of cal - uncomment this option
		#dontListenToPiVars = 1
	}
', 43);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('options.tx_cal_controller.headerStyles = default_catheader=#557CA3,green_catheader=#53A062,orange_catheader=#E84F25,pink_catheader=#B257A2,red_catheader=#D42020,yellow_catheader=#B88F0B,grey_catheader=#73738C
	 options.tx_cal_controller.bodyStyles = default_catbody=#6699CC,green_catbody=#4FC464,orange_catbody=#FF6D3B,pink_catbody=#EA62D4,red_catbody=#FF5E56,yellow_catbody=#CCB21F,grey_catbody=#9292A1');
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['cal_ajax'] = 'EXT:cal/Classes/Ajax/Ajax.php';
/**
 * Both views and model are provided using TYPO3 services.
 * Models should be
 * of the type 'cal_model' with a an extension key specific to that model.
 * Views can be of two types. The 'cal_view' type is used for views that
 * display multiple events. Within this type, subtypes for 'single', 'day',
 * 'week', 'month', 'year', and 'custom' are available. The default views
 * each have the key 'default'. Custom views tied to a specific model should
 * have service keys identical to the key of that model.
 */
开发者ID:ulrikkold,项目名称:cal,代码行数:31,代码来源:ext_localconf.php

示例8: defined

<?php

defined('TYPO3_MODE') or die;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
	options.saveDocNew.tt_address_group = 1
	options.saveDocNew.tt_address = 1
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_ttaddress_pi1.php', '_pi1', 'list_type', 1);
if (TYPO3_MODE === 'BE') {
    $settings = \TYPO3\TtAddress\Utility\SettingsUtility::getSettings();
    if ($settings->isStoreBackwardsCompatName()) {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'TYPO3\\TtAddress\\Hooks\\DataHandler\\BackwardsCompatibilityNameFormat';
    }
}
// Update scripts
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['tt_address_group'] = 'TYPO3\\TtAddress\\Updates\\AddressGroupToSysCategory';
开发者ID:scheibome,项目名称:tt_address,代码行数:16,代码来源:ext_localconf.php

示例9: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
	options.saveDocView = 1
	options.saveDocNew = 1
	options.saveDocNew.pages = 0
	options.saveDocNew.sys_file = 0
	options.disableDelete.sys_file = 1
	TCAdefaults.tt_content.imagecols = 2
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement {
	renderMode = tabs
	wizardItems {
		common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
		common.elements {
			header {
				icon = gfx/c_wiz/regular_header.gif
				title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
				description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
				tt_content_defValues {
					CType = header
				}
			}
			text {
				icon = gfx/c_wiz/regular_text.gif
				title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
				description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
开发者ID:rob-ot-dot-be,项目名称:ggallkeysecurity,代码行数:31,代码来源:ext_localconf.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
//\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
//	$_EXTKEY,
//	'Pi1',
//	'Website'
//);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Website');
$tempColumns = array('bootstrap_col_xs' => array('exclude' => 1, 'label' => 'Extra small devices (<768px)', 'config' => array('type' => 'select', 'items' => array(array('', '0'), array('1/12', '1'), array('2/12', '2'), array('3/12', '3'), array('4/12', '4'), array('5/12', '5'), array('6/12', '6'), array('7/12', '7'), array('8/12', '8'), array('9/12', '9'), array('10/12', '10'), array('11/12', '11'), array('12/12', '12')))), 'bootstrap_col_sm' => array('exclude' => 1, 'label' => 'Small devices (Tablets ≥768px)', 'config' => array('type' => 'select', 'items' => array(array('', '0'), array('1/12', '1'), array('2/12', '2'), array('3/12', '3'), array('4/12', '4'), array('5/12', '5'), array('6/12', '6'), array('7/12', '7'), array('8/12', '8'), array('9/12', '9'), array('10/12', '10'), array('11/12', '11'), array('12/12', '12')))), 'bootstrap_col_md' => array('exclude' => 1, 'label' => 'Medium devices (Desktops ≥992px)', 'config' => array('type' => 'select', 'items' => array(array('', '0'), array('1/12', '1'), array('2/12', '2'), array('3/12', '3'), array('4/12', '4'), array('5/12', '5'), array('6/12', '6'), array('7/12', '7'), array('8/12', '8'), array('9/12', '9'), array('10/12', '10'), array('11/12', '11'), array('12/12', '12')))), 'bootstrap_col_lg' => array('exclude' => 1, 'label' => 'Large devices Desktops (≥1200px)', 'config' => array('type' => 'select', 'items' => array(array('', '0'), array('1/12', '1'), array('2/12', '2'), array('3/12', '3'), array('4/12', '4'), array('5/12', '5'), array('6/12', '6'), array('7/12', '7'), array('8/12', '8'), array('9/12', '9'), array('10/12', '10'), array('11/12', '11'), array('12/12', '12')))), 'bootstrap_css' => array('exclude' => 1, 'label' => 'CSS for outer <div>', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'eval' => '')), 'bootstrap_css_inner' => array('exclude' => 1, 'label' => 'CSS for inner <div>', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'eval' => '')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', ', --div--;Bootstrap, bootstrap_col_xs, bootstrap_col_sm, bootstrap_col_md, bootstrap_col_lg, bootstrap_css, bootstrap_css_inner', '', 'after:categories');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ot_website/Configuration/TypoScript/pageTSconfig.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ot_website/Configuration/TypoScript/userTSconfig.ts">');
开发者ID:japjazz,项目名称:ot_website,代码行数:16,代码来源:ext_tables.php

示例11: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid: Website Template');
//# Add Constants and setup TSConfig
if ('BE' === TYPO3_MODE) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluxtemplate/Configuration/TypoScript/constants.txt">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluxtemplate/Configuration/TypoScript/setup.txt">');
}
//# Add page TSConfig
$pageTsConfig = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TsConfig/Page/config.ts');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig($pageTsConfig);
# Add user TSConfig
$userTsConfig = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TsConfig/User/config.ts');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig($userTsConfig);
\FluidTYPO3\Flux\Core::registerProviderExtensionKey($_EXTKEY, 'Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey($_EXTKEY, 'Page');
// New icons for the BE
if (TYPO3_MODE == 'BE') {
    $icons = array('category', 'comment', 'storage', 'tesseract', 'people', 'mail', 'form');
    foreach ($icons as $icon) {
        \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-' . $icon, \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Backend/Icons/' . $icon . '.png');
        $TCA['pages']['columns']['module']['config']['items'][] = array(ucfirst($icon), $icon, \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Backend/Icons/' . $icon . '.png');
    }
}
开发者ID:vijayrami,项目名称:fluidfluxtemplate,代码行数:27,代码来源:ext_tables.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$doktypeIcon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dynamic') . 'layout.png';
$doktypeMagicNumber = 85;
$GLOBALS['PAGES_TYPES'][$doktypeMagicNumber] = array('type' => 'web', 'icon' => $doktypeIcon, 'allowedTables' => '*');
$GLOBALS['TCA']['pages']['columns']['doktype']['config']['items'][] = array('Dynamic', $doktypeMagicNumber, $doktypeIcon);
$GLOBALS['TCA']['pages_language_overlay']['columns']['doktype']['config']['items'][] = array('Dynamic', $doktypeMagicNumber, $doktypeIcon);
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', $doktypeMagicNumber, $doktypeIcon);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $doktypeMagicNumber . ')');
开发者ID:simpletypo3,项目名称:dynamic,代码行数:12,代码来源:ext_tables.php

示例13: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:hd_sitepackage/Configuration/TSConfig/Page.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:hd_sitepackage/Configuration/TSConfig/User.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:hd_sitepackage/Configuration/TSConfig/Rte.ts">');
if (TYPO3_MODE === 'BE') {
    /** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
    $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
    $iconRegistry->registerIcon('ext-news-type-default', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:hd_sitepackage/Resources/Public/Icons/movie.svg']);
}
// register plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('HuntingDeveloper.' . $_EXTKEY, 'Pi1', array('Movie' => 'index'), array('Movie' => 'index'));
开发者ID:HuntingDeveloper,项目名称:movieandchills,代码行数:15,代码来源:ext_localconf.php

示例14: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
    options.saveDocNew.tx_recordsmanager_config=1
');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getMainFieldsClass'][] = 'EXT:recordsmanager/Classes/Hooks/class.tx_recordsmanager_callhooks.php:tx_recordsmanager_callhooks';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['postProcessValue'][] = 'EXT:recordsmanager/Classes/Hooks/class.tx_recordsmanager_callhooks.php:tx_recordsmanager_callhooks->BE_postProcessValue';
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Eid/Index.php';
开发者ID:Apen,项目名称:recordsmanager,代码行数:11,代码来源:ext_localconf.php

示例15: registerTypeInPageTreeDragArea

 /**
  * Registers the page type in the PageTree drag area
  *
  * @param int $pageType Page type
  *
  * @return void
  */
 private static function registerTypeInPageTreeDragArea($pageType)
 {
     ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $pageType . ')');
 }
开发者ID:svenhartmann,项目名称:vantomas,代码行数:11,代码来源:PageTypeRegistry.php


注:本文中的TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。