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


PHP ExtensionManagementUtility::addTypoScript方法代码示例

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


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

示例1:

# if news is loaded
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('news')) {
    # TsConfig
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Resources/Private/Extensions/News/TsConfig.ts">');
    # Setup
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3sbootstrap/Resources/Private/Extensions/News/Setup.ts">', defaultContentRendering);
}
# if indexed_search is loaded
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')) {
    # Setup
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3sbootstrap/Resources/Private/Extensions/indexed_search/Setup.ts">', defaultContentRendering);
}
# if powermail is loaded
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('powermail')) {
    # Setup
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3sbootstrap/Resources/Private/Extensions/Powermail/Main.ts">', defaultContentRendering);
}
# if dyncss & dyncss_less is loaded
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('dyncss') && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('dyncss_less')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('plugin.t3sbootstrap_configuration.general.dyncss = 1');
} else {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('plugin.t3sbootstrap_configuration.general.dyncss = 0');
}
# Path to the flags by version
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 7001000) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('plugin.t3sbootstrap_configuration.general.flags = ../typo3/sysext/t3skin/images/flags/');
} else {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('plugin.t3sbootstrap_configuration.general.flags = ../typo3/sysext/core/Resources/Public/Icons/Flags/');
}
/***************
 * Bootstrap table-classes
开发者ID:blumenbach,项目名称:bb-online.neu,代码行数:31,代码来源:ext_localconf.php

示例2: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid Styled Content');
if ('BE' === TYPO3_MODE) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluidcontent_core/Configuration/TypoScript/constants.txt">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluidcontent_core/Configuration/TypoScript/setup.txt">');
}
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\FluidcontentCore\\Provider\\CoreContentProvider');
foreach ($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] as $index => $item) {
    if ($item[1] === 'textpic') {
        unset($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][$index]);
    }
}
unset($index, $item);
开发者ID:adrolli,项目名称:fluidcontent_core,代码行数:17,代码来源:ext_tables.php

示例3:

		|formtype_mail = submit | Send form!
		|html_enabled=hidden | 1
		|subject=hidden| This is the subject
			)
		}
	}
	show :=addToList(mailform)
}
');
// Register for hook to show preview of tt_content element of CType="mailform" in page module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] = \TYPO3\CMS\Compatibility6\Hooks\PageLayoutView\MailformPreviewRenderer::class;
// Register for hook to show preview of tt_content element of CType="script" in page module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['script'] = \TYPO3\CMS\Compatibility6\Hooks\PageLayoutView\ScriptPreviewRenderer::class;
/**
 * CType "search"
 */
// Add Default TypoScript for CType "search" after default content rendering
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('compatibility6', 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:compatibility6/Configuration/TypoScript/Search/constants.txt">', 'defaultContentRendering');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('compatibility6', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:compatibility6/Configuration/TypoScript/Search/setup.txt">', 'defaultContentRendering');
// Add the search CType to the "New Content Element" wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.forms {
	elements.search {
		icon = EXT:frontend/Resources/Public/Icons/ContentElementWizard/searchform.gif
		title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_search_title
		description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_search_description
		tt_content_defValues.CType = search
	}
	show :=addToList(search)
}
');
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:31,代码来源:ext_localconf.php

示例4: 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

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['votable']);
if (FALSE === isset($configuration['autoload_typoscript']) || TRUE === (bool) $configuration['autoload_typoscript']) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/constants.ts">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/setup.ts">');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Visol.votable', 'Pi1', array('Vote' => 'index, add, remove'), array('Vote' => 'index, add, remove'));
if (TYPO3_MODE === 'BE') {
    if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        $signalSlotDispatcher->connect('TYPO3\\CMS\\Extensionmanager\\Utility\\InstallUtility', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addExtensionVoteDatabaseSchemaToTablesDefinition');
    }
    $signalSlotDispatcher->connect('TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addVoteDatabaseSchemaToTablesDefinition');
}
开发者ID:visol,项目名称:ext-votable,代码行数:17,代码来源:ext_localconf.php

示例6: trim

# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering the eID scripts
// TODO move to suggest form modifier
$TYPO3_CONF_VARS['FE']['eID_include']['tx_solr_suggest'] = 'EXT:solr/Classes/Eid/Suggest.php';
$TYPO3_CONF_VARS['FE']['eID_include']['tx_solr_api'] = 'EXT:solr/Classes/Eid/Api.php';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// replace the built-in search content element
$searchReplacementTypoScript = trim('
tt_content.search = COA
tt_content.search {
	10 = < lib.stdheader
	20 >
	20 = < plugin.tx_solr_PiResults_Results
	30 >
}
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $searchReplacementTypoScript, 43);
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// add custom Solr content objects
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][ApacheSolrForTypo3\Solr\ContentObject\Multivalue::CONTENT_OBJECT_NAME] = array(ApacheSolrForTypo3\Solr\ContentObject\Multivalue::CONTENT_OBJECT_NAME, 'ApacheSolrForTypo3\\Solr\\ContentObject\\Multivalue');
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][ApacheSolrForTypo3\Solr\ContentObject\Content::CONTENT_OBJECT_NAME] = array(ApacheSolrForTypo3\Solr\ContentObject\Content::CONTENT_OBJECT_NAME, 'ApacheSolrForTypo3\\Solr\\ContentObject\\Content');
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][ApacheSolrForTypo3\Solr\ContentObject\Relation::CONTENT_OBJECT_NAME] = array(ApacheSolrForTypo3\Solr\ContentObject\Relation::CONTENT_OBJECT_NAME, 'ApacheSolrForTypo3\\Solr\\ContentObject\\Relation');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// Register cache for frequent searches
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_solr'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_solr'] = array();
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
if (TYPO3_MODE == 'BE') {
    $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/Classes/Cli/Api.php', '_CLI_solr');
}
开发者ID:nxpthx,项目名称:ext-solr,代码行数:31,代码来源:ext_localconf.php

示例7: die

use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['px_hybrid_auth']);
// Endpoint-Plugin
ExtensionUtility::configurePlugin('Portrino.' . $_EXTKEY, 'HybridAuth', array('HybridAuth' => 'endpoint'), array('HybridAuth' => 'endpoint'));
ExtensionUtility::configurePlugin('Portrino.' . $_EXTKEY, 'Login', array('FacebookUser' => 'newLogin', 'LinkedinUser' => 'newLogin', 'XingUser' => 'newLogin'), array('FacebookUser' => 'newLogin', 'LinkedinUser' => 'newLogin', 'XingUser' => 'newLogin'));
// Identity-Plugin
ExtensionUtility::configurePlugin('Portrino.' . $_EXTKEY, 'Identity', array('Identity' => 'list,remove', 'Identity\\FacebookIdentity' => 'create,remove', 'Identity\\LinkedinIdentity' => 'create,remove', 'Identity\\XingIdentity' => 'create,remove'), array('Identity' => 'list,remove', 'Identity\\FacebookIdentity' => 'create,remove', 'Identity\\LinkedinIdentity' => 'create,remove', 'Identity\\XingIdentity' => 'create,remove'));
ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '[GLOBAL]
tt_content.px_hybrid_auth_login = COA
tt_content.px_hybrid_auth_login {
	10 = < lib.stdheader
	20 >
	20 = < plugin.tx_pxhybridauth_login
}
', TRUE);
ExtensionManagementUtility::addService($_EXTKEY, 'auth', 'Portrino\\PxHybridAuth\\Service\\SocialLoginAuthenticationService', array('title' => 'PxHybridAuth Social Login', 'description' => 'Single Sign On via Social Provider', 'subtype' => 'authUserFE,getUserFE', 'available' => TRUE, 'priority' => 82, 'quality' => 82, 'os' => '', 'exec' => '', 'className' => 'Portrino\\PxHybridAuth\\Service\\SocialLoginAuthenticationService'));
// hook for content element preview in backend
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] = 'Portrino\\PxHybridAuth\\Hooks\\PageLayoutViewDrawItemHook';
if ((bool) $extConf['facebook.']['enabled'] || (bool) $extConf['linkedin.']['enabled'] || (bool) $extConf['xing.']['enabled']) {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_post_processing'][$_EXTKEY] = 'Portrino\\PxHybridAuth\\Hooks\\LogOffHook->postProcessing';
}
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
if ((bool) $extConf['auto_fe_user_creation.']['enabled']) {
    $signalSlotDispatcher->connect('Portrino\\PxHybridAuth\\Service\\SocialLoginAuthenticationService', 'getUser', 'Portrino\\PxHybridAuth\\Slots\\SocialLoginAuthenticationServiceSlot', 'getUser', FALSE);
}
// if px_lib is not loaded take the ProcessDatamapDispatcher from py_hybrid_auth
开发者ID:kalypso63,项目名称:px_hybrid_auth,代码行数:32,代码来源:ext_localconf.php

示例8: array

        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/PageTSconfig/Image/pageTSConfig.txt">');
    }
}
// Add frontend image rendering TypoScript anyways
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('rtehtmlarea', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/TypoScript/ImageRendering/setup.txt">', 'defaultContentRendering');
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['DefaultLink'] = array();
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['DefaultLink']['objectReference'] = \TYPO3\CMS\Rtehtmlarea\Extension\DefaultLink::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Link'] = array();
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Link']['objectReference'] = \TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Link']['disableInFE'] = 1;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Link']['additionalAttributes'] = 'rel';
// Add default Page TS Config RTE configuration for enabling links accessibility icons
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['enableAccessibilityIcons'] = $_EXTCONF['enableAccessibilityIcons'] ?: 0;
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['enableAccessibilityIcons']) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/PageTSconfig/AccessibilityIcons/pageTSConfig.txt">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('rtehtmlarea', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/TypoScript/AccessibilityIcons/setup.txt">', 'defaultContentRendering');
}
// Register features that use the style attribute
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['allowStyleAttribute'] = isset($_EXTCONF['allowStyleAttribute']) && !$_EXTCONF['allowStyleAttribute'] ? 0 : 1;
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['allowStyleAttribute']) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Color'] = array();
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Color']['objectReference'] = \TYPO3\CMS\Rtehtmlarea\Extension\Typo3Color::class;
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TYPO3Color']['disableInFE'] = 0;
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['SelectFont'] = array();
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['SelectFont']['objectReference'] = \TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::class;
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['SelectFont']['disableInFE'] = 0;
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rtehtmlarea/Configuration/PageTSconfig/Style/pageTSConfig.txt">');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TextIndicator'] = array();
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TextIndicator']['objectReference'] = \TYPO3\CMS\Rtehtmlarea\Extension\TextIndicator::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['plugins']['TextIndicator']['disableInFE'] = 0;
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:31,代码来源:ext_localconf.php

示例9: array

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Pi1', 'YAG - Yet Another Gallery');
/**
 * Register Backend Module
 */
if (TYPO3_MODE === 'BE') {
    /**
     * Registers a Backend Module
     */
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'web', 'tx_yag_m1', '', array('Gallery' => 'list, index, show, new, create, edit, update, delete', 'Album' => 'show, new, create, edit, update, delete, addItems, updateSorting, bulkUpdate', 'FileUpload' => 'upload', 'Item' => 'index, show, new, create, edit, update, delete, bulkUpdate', 'ItemList' => 'list,submitFilter', 'ItemFile' => 'index, show, new, create, edit, update, delete', 'DirectoryImport' => 'showImportForm, importFromDirectory', 'ZipImport' => 'showImportForm, importFromZip, createNewAlbumAndImportFromZip', 'Remote' => 'addItemToAlbum, albumList, galleryList', 'Ajax' => 'updateItemSorting,updateGallerySorting,directoryAutoComplete,deleteItem,deleteGallery,deleteAlbum,updateItemTitle,setItemAsAlbumThumb,
				updateItemDescription,updateAlbumSorting,updateAlbumTitle,updateAlbumDescription,updateGenericProperty,
				setAlbumAsGalleryThumb,hideAlbum,unhideAlbum,hideGallery,unhideGallery,getSubDirs', 'AdminMenu' => 'index', 'Backend' => 'settingsNotAvailable,extConfSettingsNotAvailable,noGalleryIsPosibleOnPIDZero,maintenanceOverview,clearAllPageCache,doDbUpdate,markPageAsYagSysFolder', 'ResolutionFileCache' => 'clearResolutionFileCache,buildResolutionByConfiguration,buildAllItemResolutions'), array('access' => 'user,group', 'icon' => 'EXT:yag/ext_icon.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['Tx_Yag_Utility_WizzardIcon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Utility/WizzardIcon.php';
    // Register status report checks in backend
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['YAG'] = array('Tx_Yag_Report_ExternalLibraries', 'Tx_Yag_Report_Filesystem', 'Tx_Yag_Report_EnvironmentVariables');
    // Add Backend TypoScript
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:yag/Configuration/TypoScript/Backend/Setup.txt">');
}
/**
 * Register Plugin as Page Content
 */
$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key,pages';
/**
 * Register static Typoscript Template
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', '[yag] Yet Another Gallery');
/**
 * Register flexform
 */
开发者ID:rabe69,项目名称:yag,代码行数:31,代码来源:ext_tables.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('formule_newsletter', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:formule_newsletter/Configuration/TypoScript/setup.ts">');
开发者ID:Ecodev,项目名称:formule_newsletter,代码行数:6,代码来源:ext_localconf.php

示例11: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Default TsConfig
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/modWizards.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/TCAdefaults.ts">');
/**
 * Default Constants
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'constants', trim('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Constants.ts">'));
/**
 * Content Element Definitions
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', trim('
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/FluidTemplate.ts">
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/ImageTextLeft.ts">
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/Gallery.ts">
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/Team.ts">
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/Teaser.ts">
        <INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/ContentElements/SponsorFeature.ts">
    '), 43);
开发者ID:xnet74,项目名称:t3crr_contentelements,代码行数:25,代码来源:ext_localconf.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_rgsmoothgallery_pi1 = < plugin.tx_rgsmoothgallery_pi1.CSS_editor
', 43);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_rgsmoothgallery_pi1.php', '_pi1', 'list_type', 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
    options.saveDocNew.tx_rgsmoothgallery_image=1
');
// hook for tt_news
if (TYPO3_MODE == 'FE') {
    require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_rgsmoothgallery_fe.php';
}
$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] = 'tx_rgsmoothgallery_fe';
#$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraGlobalMarkerHook'][]   = 'tx_rgsmoothgallery_fe';
开发者ID:joekolade,项目名称:rgsmoothgallery,代码行数:19,代码来源:ext_localconf.php

示例13: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$composerAutoloadFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Libraries/autoload.php';
require_once $composerAutoloadFile;
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Powrup.' . $_EXTKEY, 'Youtubeplaylistplugin', array('PlayList' => 'show'), array('PlayList' => ''));
// Flexform record selector
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Utility/Flexform/PlaylistSelector.php';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, "constants", '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:youtube_playlist/Configuration/TypoScript/constants.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, "setup", '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:youtube_playlist/Configuration/TypoScript/setup.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('mod {
     wizards.newContentElement.wizardItems.plugins {
        elements {
			tx_youtube_playlist {
			   icon = ' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif
			   title = YouTube Playlist
			   description = Select all playlists of a YouTube channel to display them in a specific order in the frontend.
			   params = &defVals[tt_content][CType]=list&defVals[tt_content][list_type]=youtubeplaylist_youtubeplaylistplugin
			}
        }
     }
   }');
开发者ID:hummal,项目名称:typo3_youtube_playlist,代码行数:24,代码来源:ext_localconf.php

示例14: unset

 * Add Bootstrap Package autoconfig to realurl
 */
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')) {
    $realUrlVersion = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('realurl');
    if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($realUrlVersion) < 2000000) {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration'][$_EXTKEY] = 'BK2K\\BootstrapPackage\\Hooks\\RealUrl\\AutoConfig->addConfigVersion1x';
    } else {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration'][$_EXTKEY] = 'BK2K\\BootstrapPackage\\Hooks\\RealUrl\\AutoConfig->addConfigVersion2x';
    }
    unset($realUrlVersion);
}
/***************
 * Add Bootstrap Package config to felogin
 */
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('BootstrapPackage.Felogin', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:bootstrap_package/Configuration/TypoScript/ContentElement/Login.txt">', 'defaultContentRendering');
}
if (TYPO3_MODE === 'BE') {
    /**
     * Provides an example .htaccess file for Apache after extension is installed and shows a warning if TYPO3 is not running on Apache.
     */
    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
    $signalSlotDispatcher->connect('TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService', 'hasInstalledExtensions', 'BK2K\\BootstrapPackage\\Service\\InstallService', 'generateApacheHtaccess');
}
/***************
 * Register hook for processing less files
 */
if (TYPO3_MODE === 'FE') {
    require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('bootstrap_package') . '/Contrib/less.php/Less.php';
    if (!$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disableLessProcessing']) {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = 'BK2K\\BootstrapPackage\\Hooks\\PageRendererRender\\PreProcessHook->execute';
开发者ID:pekue,项目名称:bootstrap_package,代码行数:31,代码来源:ext_localconf.php

示例15: loadExtensionConfiguration

   /**
    * Run the loading process for the ext_localconf.php file
    *
    * @param Loader $loader
    * @param array  $loaderInformation
    *
    * @return NULL
    */
   public function loadExtensionConfiguration(Loader $loader, array $loaderInformation)
   {
       if (!$loaderInformation) {
           return null;
       }
       static $loadPlugin = true;
       $csc = ExtensionManagementUtility::isLoaded('css_styled_content');
       $typoScript = '';
       if ($loadPlugin) {
           $loadPlugin = false;
           ExtensionUtility::configurePlugin('HDNET.autoloader', 'Content', ['Content' => 'index'], ['Content' => '']);
           if (!$csc) {
               $typoScript .= 'tt_content = CASE
t_content.key.field = CType';
           }
       }
       foreach ($loaderInformation as $e => $config) {
           $typoScript .= '
       tt_content.' . $loader->getExtensionKey() . '_' . $e . ' = COA
       tt_content.' . $loader->getExtensionKey() . '_' . $e . ' {
           ' . ($config['noHeader'] ? '' : '10 =< lib.stdheader') . '
           20 = USER
           20 {
               userFunc = TYPO3\\CMS\\Extbase\\Core\\Bootstrap->run
               extensionName = Autoloader
               pluginName = Content
               vendorName = HDNET
               settings {
                   contentElement = ' . $config['model'] . '
                   extensionKey = ' . $loader->getExtensionKey() . '
                   vendorName = ' . $loader->getVendorName() . '
               }
           }
       }
       config.tx_extbase.persistence.classes.' . $config['modelClass'] . '.mapping.tableName = tt_content
       ';
       }
       if ($csc) {
           ExtensionManagementUtility::addTypoScript($loader->getExtensionKey(), 'setup', $typoScript, 43);
       } else {
           ExtensionManagementUtility::addTypoScriptSetup($typoScript);
       }
       return null;
   }
开发者ID:c2po,项目名称:autoloader,代码行数:52,代码来源:ContentObjects.php


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