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


PHP ExtensionManagementUtility::addTypoScriptSetup方法代码示例

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


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

示例1: setUp

 /**
  * Sets up this test case.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->importDataSet(__DIR__ . '/Fixtures/Xml/fe_users.xml');
     $this->importDataSet(__DIR__ . '/Fixtures/Xml/tx_sessions_domain_model_session.xml');
     $this->importDataSet(__DIR__ . '/Fixtures/Xml/tx_sessions_session_record_mm.xml');
     ExtensionManagementUtility::addTypoScriptSetup('
         <INCLUDE_TYPOSCRIPT: source="FILE:EXT:sessions/Configuration/TypoScript/setup.txt">
         config.tx_extbase.persistence < plugin.tx_sessions.persistence
     ');
 }
开发者ID:t3dd,项目名称:T3DD16.Backend,代码行数:14,代码来源:AbstractTestCase.php

示例2: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', '', '', array(), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:typo3profilertitle'));
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', 'mod1', '', array('Page' => 'index,show,flush'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/page.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:modpage'));
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', 'mod2', '', array('Sql' => 'index,show,flush'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/sql.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:modsql'));
    //\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', $_EXTKEY);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:typo3profiler/Configuration/TypoScript/setup.txt">');
}
开发者ID:Apen,项目名称:typo3profiler,代码行数:12,代码来源:ext_tables.php

示例3: unset

        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] = 'EXT:asdis/Classes/Typo3/Hook/ContentPostProcAll.php:&Tx_Asdis_Typo3_Hook_ContentPostProcAll->processCache';
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] = 'EXT:asdis/Classes/Typo3/Hook/ContentPostProcAll.php:&Tx_Asdis_Typo3_Hook_ContentPostProcAll->processNoCache';
        break;
}
unset($extConf);
// Register scrapers
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'cssUrl', 'class' => 'Tx_Asdis_Content_Scraper_Css_Url', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Css/Url.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlCssFile', 'class' => 'Tx_Asdis_Content_Scraper_Html_CssFile', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/CssFile.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlAppleTouchIcon', 'class' => 'Tx_Asdis_Content_Scraper_Html_AppleTouchIcon', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/AppleTouchIcon.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlCssAttribute', 'class' => 'Tx_Asdis_Content_Scraper_Html_CssAttribute', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/CssAttribute.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlCssInline', 'class' => 'Tx_Asdis_Content_Scraper_Html_CssInline', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/CssInline.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlEmbed', 'class' => 'Tx_Asdis_Content_Scraper_Html_Embed', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/Embed.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlFavicon', 'class' => 'Tx_Asdis_Content_Scraper_Html_Favicon', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/Favicon.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlImage', 'class' => 'Tx_Asdis_Content_Scraper_Html_Image', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/Image.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlInputImage', 'class' => 'Tx_Asdis_Content_Scraper_Html_InputImage', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/InputImage.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlOpenGraphImage', 'class' => 'Tx_Asdis_Content_Scraper_Html_OpenGraphImage', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/OpenGraphImage.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlScript', 'class' => 'Tx_Asdis_Content_Scraper_Html_Script', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/Script.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlCss3Image', 'class' => 'Tx_Asdis_Content_Scraper_Html_Css3Image', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/Css3Image.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlMetaMsApplication', 'class' => 'Tx_Asdis_Content_Scraper_Html_MetaMsApplication', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/MetaMsApplication.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['scrapers'][] = array('key' => 'htmlDataSrc', 'class' => 'Tx_Asdis_Content_Scraper_Html_DataSrc', 'file' => PATH_tx_asdis . 'Classes/Content/Scraper/Html/DataSrc.php');
// Register filters
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['filters'][] = array('key' => 'bubblingPath', 'class' => 'Tx_Asdis_System_Uri_Filter_BubblingPath', 'file' => PATH_tx_asdis . 'Classes/System/Uri/Filter/BubblingPath.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['filters'][] = array('key' => 'containsInlineData', 'class' => 'Tx_Asdis_System_Uri_Filter_ContainsInlineData', 'file' => PATH_tx_asdis . 'Classes/System/Uri/Filter/ContainsInlineData.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['filters'][] = array('key' => 'containsProtocol', 'class' => 'Tx_Asdis_System_Uri_Filter_ContainsProtocol', 'file' => PATH_tx_asdis . 'Classes/System/Uri/Filter/ContainsProtocol.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['filters'][] = array('key' => 'tooShort', 'class' => 'Tx_Asdis_System_Uri_Filter_TooShort', 'file' => PATH_tx_asdis . 'Classes/System/Uri/Filter/TooShort.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['filters'][] = array('key' => 'wildcardProtocol', 'class' => 'Tx_Asdis_System_Uri_Filter_WildcardProtocol', 'file' => PATH_tx_asdis . 'Classes/System/Uri/Filter/WildcardProtocol.php');
// Register distribution algorithms
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['distributionAlgorithms'][] = array('key' => 'hashBasedGroups', 'class' => 'Tx_Asdis_Domain_Model_DistributionAlgorithm_HashBasedGroups', 'file' => PATH_tx_asdis . 'Classes/Domain/Model/DistributionAlgorithm/HashBasedGroups.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['asdis']['distributionAlgorithms'][] = array('key' => 'roundRobin', 'class' => 'Tx_Asdis_Domain_Model_DistributionAlgorithm_RoundRobin', 'file' => PATH_tx_asdis . 'Classes/Domain/Model/DistributionAlgorithm/RoundRobin.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(file_get_contents(PATH_tx_asdis . 'Configuration/TypoScript/setup.txt'));
开发者ID:AOEpeople,项目名称:asdis,代码行数:30,代码来源:ext_localconf.php

示例4: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Automatically include extension Typoscript
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/Typoscript/constants.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/Typoscript/setup.ts">');
// Configure the faq individual category plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Tev.' . $_EXTKEY, 'FaqCategory', ['Category' => 'show']);
开发者ID:3ev,项目名称:tev_faqs,代码行数:10,代码来源:ext_localconf.php

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

示例6: addTypoScript

 /**
  * Add the given loader information as TypoScript
  *
  * @param array $loaderInformation
  */
 protected function addTypoScript(array $loaderInformation)
 {
     if ($loaderInformation) {
         ExtensionManagementUtility::addTypoScriptSetup(LF . implode(LF, $loaderInformation) . LF);
     }
 }
开发者ID:Calius,项目名称:autoloader,代码行数:11,代码来源:ExtensionTypoScriptSetup.php

示例7: call_user_func

<?php

if (!defined('TYPO3_MODE')) {
    throw new \Exception('Access denied.');
}
call_user_func(function ($extensionKey) {
    if (TYPO3_MODE == 'BE') {
        \Romm\SiteFactory\Utility\AjaxDispatcherUtility::activateAjaxDispatcher();
        // Registering the caches for this extension.
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_' . $extensionKey . '_main'] = ['backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\SimpleFileBackend', 'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend', 'groups' => ['all', 'system', 'pages']];
        // Registering the caches for this extension.
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_' . $extensionKey . '_processed'] = ['backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\SimpleFileBackend', 'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend', 'options' => ['cacheDirectory' => Romm\SiteFactory\Core\Core::getProcessedFolderPath()]];
        // Including main TypoScript files.
        $includeTypoScriptSyntax = '<INCLUDE_TYPOSCRIPT: source="FILE:%s">';
        $typoScriptFiles = ['EXT:' . $extensionKey . '/Configuration/TypoScript/Default/DefaultConfiguration.ts', 'EXT:' . $extensionKey . '/Configuration/TypoScript/Default/FieldsTypesConfiguration.ts', 'EXT:' . $extensionKey . '/Configuration/TypoScript/Default/FieldsConfiguration.ts', 'EXT:' . $extensionKey . '/Configuration/TypoScript/Default/DuplicationConfiguration.ts'];
        foreach ($typoScriptFiles as $filePath) {
            \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(sprintf($includeTypoScriptSyntax, $filePath));
        }
    }
}, $_EXTKEY);
开发者ID:romaincanon,项目名称:TYPO3-Site-Factory,代码行数:20,代码来源:ext_localconf.php

示例8: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
		rpc = PAGE
		rpc {
			typeNum = 991
			config {
				no_cache = 1
				disableAllHeaderCode = 1
				additionalHeaders = Content-type:application/json
    			xhtml_cleaning = 0
    			admPanel = 0
    			debug = 0
			}
			headerData >
			10 = USER_INT
			10.userFunc = NamelessCoder\\Rpc\\RequestDispatcher->handleIncomingRequest
		}
	');
}
\NamelessCoder\Rpc\Manager\TaskManager::setInstance(new \NamelessCoder\Rpc\Implementation\TaskManagerImplementation());
\NamelessCoder\Rpc\Manager\ClientManager::setInstance(new \NamelessCoder\Rpc\Implementation\ClientManagerImplementation());
\NamelessCoder\Rpc\Manager\TaskManager::getInstance()->addTask(new \NamelessCoder\Rpc\Implementation\Task\HelpTask('help'));
\NamelessCoder\Rpc\Manager\TaskManager::getInstance()->addTask(new \NamelessCoder\Rpc\Implementation\Task\ListTask('list'));
\NamelessCoder\Rpc\Manager\TaskManager::getInstance()->addTask(new \NamelessCoder\Rpc\Implementation\Task\DemoTask('demo'));
\NamelessCoder\Rpc\Implementation\Task\CommandTask::registerForCommand(\TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController::class, 'install')->setFieldTypeForArgument(\NamelessCoder\Rpc\Implementation\Field\AvailableExtensionsField::class, 'extensionKey');
\NamelessCoder\Rpc\Implementation\Task\CommandTask::registerForCommand(\TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController::class, 'uninstall')->setFieldTypeForArgument(\NamelessCoder\Rpc\Implementation\Field\InstalledExtensionsField::class, 'extensionKey');
开发者ID:namelesscoder,项目名称:rpc,代码行数:31,代码来源:ext_localconf.php

示例9: file_get_contents

	}
}
[end]
';
// Load setup.ts Template
$template = file_get_contents(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('mask') . "Resources/Private/Mask/setup.ts", true);
// Fill setup.ts:
if ($json["tt_content"]["elements"]) {
    foreach ($json["tt_content"]["elements"] as $element) {
        $temp = str_replace("###KEY###", $element["key"], $template);
        $temp = str_replace("###PATH###", $extConf['content'] . $element["key"] . '.html', $temp);
        $setupContent .= $temp;
    }
}
// put into setup-field:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup($setupContent);
// for conditions on tt_content:
if (!function_exists('user_mask_contentType')) {
    function user_mask_contentType($param = "")
    {
        if (isset($_REQUEST["edit"]["tt_content"]) && is_array($_REQUEST["edit"]["tt_content"])) {
            $field = explode("|", $param);
            $request = $_REQUEST;
            $first = array_shift($request["edit"]["tt_content"]);
            if ($first == "new") {
                // if new element
                if ($_REQUEST["defVals"]["tt_content"]["CType"] == $field[1]) {
                    return true;
                } else {
                    return false;
                }
开发者ID:butu,项目名称:mask,代码行数:31,代码来源:ext_localconf.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\R3H6\Error404page\Utility\CustomPageUtility::addDoktype($_EXTKEY, \R3H6\Error404page\Configuration\ExtensionConfiguration::get('doktypeError404page'), 'Error404page');
if (TYPO3_MODE === 'BE' && \R3H6\Error404page\Configuration\ExtensionConfiguration::get('enableErrorLog')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:error404page/Configuration/TypoScript/setup.txt">');
    if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '7.6.0', '<')) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:error404page/Configuration/TypoScript/Compatibility6/setup.txt">');
    }
    /**
     * Registers a Backend Module
     */
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('R3H6.' . $_EXTKEY, 'web', 'statistic', '', array('Error' => 'dashboard, list, show, deleteAll'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.svg', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_statistic.xlf'));
}
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '7.4.0', '>=')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile($_EXTKEY, 'Configuration/PageTS/Redirect403.txt', 'EXT:error404page :: Redirect 403 error to login page');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_error404page_domain_model_error', 'EXT:error404page/Resources/Private/Language/locallang_csh_tx_error404page_domain_model_error.xlf');
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:20,代码来源:ext_tables.php

示例11: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if (!empty($settings['includeGoogleMaps'])) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Resources/Private/TypoScript/googleMaps.ts">');
}
if (!empty($settings['includeJavaScript'])) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Resources/Private/TypoScript/loadMapJs.ts">');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('CPSIT.' . $_EXTKEY, 'Courses', ['Course' => 'list, show, filter', 'Schedule' => 'list, show, filter'], ['Course' => 'filter', 'Schedule' => 'filter,list']);
开发者ID:dwenzel,项目名称:t3events_course,代码行数:13,代码来源:ext_localconf.php

示例12: getenv

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
config {
    removeDefaultJS = ' . getenv('TS_CONFIG_REMOVEDEFAULTJS') . '
    no_cache = ' . getenv('TS_CONFIG_NOCACHE') . '
    disablePrefixComment = ' . getenv('TS_CONFIG_DISABLEPREFIXCOMMENT') . '
    tx_realurl_enable = ' . getenv('TS_CONFIG_TXREALURLENABLE') . '
    sendCacheHeaders = ' . getenv('TS_CONFIG_SENDCACHEHEADERS') . '

    cdn {
        replace {
            http {
                20 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_FILEADMIN') . '
                21 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_FILEADMIN') . '
                30 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3CONF') . '
                31 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3CONF') . '
                40 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3TEMP') . '
                41 = "http://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3TEMP') . '
            }
            https {
                20 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_FILEADMIN') . '
                21 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_FILEADMIN') . '
                30 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3CONF') . '
                31 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3CONF') . '
                40 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3TEMP') . '
                41 = "https://' . getenv('TS_CONFIG_CDN_REPLACE_TYPO3TEMP') . '
            }
        }
    }
}
plugin.tx_vantomas.settings {
    twitter {
        consumerKey = ' . getenv('TWITTER_CONSUMERKEY') . '
        consumerSecret = ' . getenv('TWITTER_CONSUMERSECRET') . '
    }

    disqus {
        apiKey = ' . getenv('DISQUS_APIKEY') . '
    }
    mail.DreadLabs\\VantomasWebsite\\Form\\Contact {
        sender {
            1 {
                mail = ' . getenv('TS_PLUGIN_TXVANTOMAS_SETTINGS_MAIL_CONTACT_SENDER_MAIL') . '
                name = ' . getenv('TS_PLUGIN_TXVANTOMAS_SETTINGS_MAIL_CONTACT_SENDER_NAME') . '
            }
        }
        receiver {
            1 {
                mail = ' . getenv('TS_PLUGIN_TXVANTOMAS_SETTINGS_MAIL_CONTACT_RECEIVER_MAIL') . '
                name = ' . getenv('TS_PLUGIN_TXVANTOMAS_SETTINGS_MAIL_CONTACT_RECEIVER_NAME') . '
            }
        }
    }
}
rss_feed.typeNum = ' . getenv('TS_RSSFEED_TYPENUM') . '
');
开发者ID:svenhartmann,项目名称:vantomas,代码行数:55,代码来源:ext_localconf.php

示例13: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Builder', 'Frontend', array('Frontend' => 'build'), array('Frontend' => 'build'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Builder', 'Doodle', array('Frontend' => 'doodle,renderFluid'), array('Frontend' => 'renderFluid'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Builder', 'Render', array('Frontend' => 'renderFluid'), array('Frontend' => 'renderFluid'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
[GLOBAL]
builderDoodle = PAGE
builderDoodle {
	typeNum = 9967
	config {
		no_cache = 1
		disableAllHeaderCode = 1
	}
	9967 = USER
	9967 {
		userFunc = TYPO3\\CMS\\Extbase\\Core\\Bootstrap->run
		vendorName = FluidTYPO3
		extensionName = Builder
		pluginName = Render
	}
}
[GLOBAL]
');
开发者ID:Outdoorsman,项目名称:builder,代码行数:27,代码来源:ext_localconf.php

示例14: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['BE']['XCLASS']['ext/scheduler/class.tx_scheduler.php'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/XClass/Scheduler.php';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['tx_scheduler']['className'] = 'Scheduler';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Scheduler\\Scheduler']['className'] = 'AOE\\SchedulerTimeline\\XClass\\Scheduler';
// Get the extensions's configuration
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['scheduler_timeline']);
if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX || 'BE' === TYPO3_MODE) {
    /** @noinspection PhpUndefinedVariableInspection */
    $extPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(file_get_contents($extPath . 'Configuration/TypoScript/Backend/setup.txt'));
}
开发者ID:AOEpeople,项目名称:scheduler_timeline,代码行数:15,代码来源:ext_localconf.php

示例15: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['schemaker'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['schemaker'] = array();
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['schemaker']['setup'] = unserialize($_EXTCONF);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'FluidTYPO3\\Schemaker\\Command\\SchemaCommandController';
if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['schemaker']['setup']['frontend']) && $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['schemaker']['setup']['frontend'] > 0) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Schemaker', 'Schema', array('Schema' => 'schema'), array());
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
# mapping info translating extension keys (legacy) to Vendor.ExtensionName format. Required for correct operation.
module.tx_schemaker.settings.extensionKeyClassNamespaceMap {
	fluid = TYPO3.Fluid
	beuser = TYPO3.Beuser
	filelist = TYPO3.Filelist
	vhs = FluidTYPO3.Vhs
	flux = FluidTYPO3.Flux
	news = GeorgRinger.News
}
# blacklisted extensions. Any keys included here will be ignored when detecting extensions containing ViewHelpers - useful to exclude extensions which provide internal or otherwise irrelevant ViewHelpers.
module.tx_schemaker.settings.blacklistedExtensionKeys = core,install,belog,sys_note,cshmanual,extensionmanager,scheduler,reports,backend,form
');
开发者ID:fluidtypo3,项目名称:schemaker,代码行数:26,代码来源:ext_localconf.php


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