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


PHP ExtensionManagementUtility::addPlugin方法代码示例

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


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

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['tt_content']['types'][$_EXTKEY . '_pi1']['showitem'] = 'CType;;4;button;1-1-1, header;;3;;2-2-2';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:bootstrap_tab/locallang_db.xml:tt_content.CType_pi1', $_EXTKEY . '_pi1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'CType');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/bootstrap_tabs/', 'Bootstrap Tabs');
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:8,代码来源:ext_tables.php

示例2:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_file_metadata', 'creative_commons', '', 'after:wiki_commons');
$TCA['sys_file_metadata']['columns']['alt_text']['config']['eval'] = 'required';
$TCA['sys_file_metadata']['columns']['exturl']['config']['eval'] = 'required';
$TCA['sys_file_metadata']['columns']['copyright']['config']['eval'] = 'required';
/**
 * Register Custom Fluid Content Element
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['Social Infobox', 'tmplsub_socialinfobox'], 'CType');
/**
 * Prepare TCA for Custom Fluid Content Element
 */
$TCA['tt_content']['types']['tmplsub_socialinfobox']['showitem'] = $TCA['tt_content']['types']['bullets']['showitem'];
/**
 * Register Lecture Content Element
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['Lectures', 'tmplsub_lectures'], 'CType');
/**
 * Prepare TCA for Custom Fluid Content Element
 */
$TCA['tt_content']['types']['tmplsub_lectures'] = $TCA['tt_content']['types']['table'];
$TCA['tt_content']['columns']['pi_flexform']['config']['ds']['*,tmplsub_lectures'] = 'FILE:EXT:css_styled_content/flexform_ds.xml';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', ['Lectures', 'tmplsub_lectures', 'content-image'], 'textmedia', 'after');
// mandatory fields for the backend
$TCA['be_users']['columns']['email']['config']['eval'] = 'trim,required';
$TCA['be_users']['columns']['realName']['config']['eval'] = 'trim,required';
$TCA['be_groups']['columns']['description']['config']['eval'] = 'required';
$TCA['be_groups']['columns']['lockToDomain']['config']['disabled'] = TRUE;
$TCA['tt_content']['columns']['header']['config']['eval'] = 'trim,required';
$TCA['tt_content']['columns']['altText']['config']['eval'] = 'trim,required';
$TCA['tt_content']['columns']['titleText']['config']['eval'] = 'trim,required';
$TCA['tt_content']['columns']['imagecaption']['config']['type'] = "input";
开发者ID:dsusk,项目名称:typo3-tmpl_sub,代码行数:31,代码来源:ext_tables.php

示例3: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// get extension configuration
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['jfmulticontent']);
$tempColumns = array('tx_jfmulticontent_view' => array('exclude' => 1, 'onChange' => 'reload', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view', 'config' => array('type' => 'select', 'size' => 1, 'maxitems' => 1, 'default' => 'content', 'items' => array(array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.0', 'content'), array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.1', 'page'), array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.2', 'irre')), 'itemsProcFunc' => 'EXT:jfmulticontent/lib/class.tx_jfmulticontent_itemsProcFunc.php:&tx_jfmulticontent_itemsProcFunc->getViews')), 'tx_jfmulticontent_pages' => array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:page', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.pages', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('suggest' => array('type' => 'suggest')))), 'tx_jfmulticontent_irre' => array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:irre', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.irre', 'config' => array('type' => 'inline', 'foreign_table' => 'tt_content', 'foreign_field' => 'tx_jfmulticontent_irre_parentid', 'foreign_sortby' => 'sorting', 'foreign_label' => 'header', 'maxitems' => 1000, 'appearance' => array('showSynchronizationLink' => FALSE, 'showAllLocalizationLink' => FALSE, 'showPossibleLocalizationRecords' => FALSE, 'showRemovedLocalizationRecords' => FALSE, 'expandSingle' => TRUE, 'newRecordLinkAddTitle' => TRUE, 'useSortable' => TRUE), 'behaviour' => array('localizeChildrenAtParentLocalization' => 1, 'localizationMode' => 'select'))));
if ($confArr["useStoragePidOnly"]) {
    $tempColumns['tx_jfmulticontent_contents'] = array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:,content', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents', 'config' => array('type' => 'select', 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND tt_content.pid=###STORAGE_PID### AND tt_content.hidden=0 AND tt_content.deleted=0 AND tt_content.sys_language_uid IN (0,-1) ORDER BY tt_content.uid', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('_PADDING' => 2, '_VERTICAL' => 1, 'add' => array('type' => 'script', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_add', 'icon' => 'add.gif', 'module' => array('name' => 'wizard_add', 'urlParameters' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###', 'setValue' => 'prepend'))), 'list' => array('type' => 'script', 'title' => 'List', 'icon' => 'list.gif', 'module' => array('name' => 'wizard_list', 'urlParameters' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###'))), 'edit' => array('type' => 'popup', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_edit', 'icon' => 'edit2.gif', 'module' => array('name' => 'wizard_edit'), 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=600,width=800,status=0,menubar=0,scrollbars=1'))));
} else {
    $tempColumns['tx_jfmulticontent_contents'] = array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:,content', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tt_content', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('_PADDING' => 2, '_VERTICAL' => 1, 'add' => array('type' => 'script', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_add', 'icon' => 'add.gif', 'module' => array('name' => 'wizard_add', 'urlParameters' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###', 'setValue' => 'prepend'))), 'list' => array('type' => 'script', 'title' => 'List', 'icon' => 'list.gif', 'module' => array('name' => 'wizard_list', 'urlParameters' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###'))), 'edit' => array('type' => 'popup', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_edit', 'icon' => 'edit2.gif', 'module' => array('name' => 'wizard_edit'), 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=600,width=800,status=0,menubar=0,scrollbars=1'))));
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns, 1);
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'tx_jfmulticontent_view,tx_jfmulticontent_pages,tx_jfmulticontent_contents,tx_jfmulticontent_irre,pi_flexform';
// Add reload field to tt_content
$TCA['tt_content']['ctrl']['requestUpdate'] .= ($TCA['tt_content']['ctrl']['requestUpdate'] ? ',' : '') . 'tx_jfmulticontent_view';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/flexform_ds.xml');
if (TYPO3_MODE == 'BE') {
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_jfmulticontent_pi1_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi1/class.tx_jfmulticontent_pi1_wizicon.php';
    if (!isset($TCA['tt_content']['columns']['colPos']['config']['items'][$confArr['colPosOfIrreContent']])) {
        // Add the new colPos to the array, only if the ID does not exist...
        $TCA['tt_content']['columns']['colPos']['config']['items'][$confArr['colPosOfIrreContent']] = array($_EXTKEY, $confArr['colPosOfIrreContent']);
    }
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/', 'Multi content');
开发者ID:thegass,项目名称:jfmulticontent,代码行数:28,代码来源:ext_tables.php

示例4:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_deliveryreciept', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_deliveryreciept.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_deliveryreciept');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_ordering', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_ordering.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_ordering');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_paymentmethod', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_paymentmethod.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_paymentmethod');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_orderablearticle', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_orderablearticle.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_orderablearticle');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_orderingposition', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_orderingposition.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_orderingposition');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_basketentry', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_basketentry.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_basketentry');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_category', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_category.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_category');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_page', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_page.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_page');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cadabra_domain_model_file', 'EXT:cadabra/Resources/Private/Language/locallang_csh_tx_cadabra_domain_model_file.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cadabra_domain_model_file');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:cadabra/Configuration/TypoScript/PageTsConfig.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:cadabra/Resources/Private/Language/locallang_ce.xlf:cadabra_article', 'cadabra_article'), 'CType', 'cadabra');
$GLOBALS['TCA']['tt_content']['types']['cadabra_article']['showitem'] = 'CType;;cadabra_general-element-properties;1-1-1,
     --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
    --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility; visibility,starttime, endtime';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:cadabra/Resources/Private/Language/locallang_ce.xlf:cadabra_product', 'cadabra_product'), 'CType', 'cadabra');
$GLOBALS['TCA']['tt_content']['types']['cadabra_product']['showitem'] = 'CType;;cadabra_general-element-properties;1-1-1,
     --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
    --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility; visibility,starttime, endtime';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:cadabra/Resources/Private/Language/locallang_ce.xlf:cadabra_basket', 'cadabra_basket'), 'CType', 'cadabra');
$GLOBALS['TCA']['tt_content']['types']['cadabra_basket']['showitem'] = 'CType;;cadabra_general-element-properties;1-1-1,
     --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
    --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility; visibility,starttime, endtime';
开发者ID:nikonierer,项目名称:cadabra,代码行数:31,代码来源:ext_tables.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_gridelements_backend_layout');
if (TYPO3_MODE === 'BE') {
    include_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('gridelements') . 'Classes/Backend/TtContent.php';
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', 'Gridelements');
// Register backend_layout wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('wizard_gridelements_backend_layout', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Wizard/');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tt_content.CType_pi1', $_EXTKEY . '_pi1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'CType');
// Hooks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][] = 'EXT:gridelements/Classes/Hooks/DrawItem.php:GridElementsTeam\\Gridelements\\Hooks\\DrawItem';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'][] = 'EXT:gridelements/Classes/Hooks/WizardItems.php:GridElementsTeam\\Gridelements\\Hooks\\WizardItems';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:gridelements/Classes/Hooks/DataHandler.php:GridElementsTeam\\Gridelements\\Hooks\\DataHandler';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:gridelements/Classes/Hooks/DataHandler.php:GridElementsTeam\\Gridelements\\Hooks\\DataHandler';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'EXT:gridelements/Classes/Hooks/DataHandler.php:GridElementsTeam\\Gridelements\\Hooks\\DataHandler';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'][] = 'EXT:gridelements/Classes/Hooks/BackendUtilityGridelements.php:GridElementsTeam\\Gridelements\\Hooks\\BackendUtilityGridelements';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tx_templavoila_api']['apiIsRunningTCEmain'] = TRUE;
if (TYPO3_MODE === 'BE') {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Hooks/PageRenderer.php:GridElementsTeam\\Gridelements\\Hooks\\PageRenderer->addJSCSS';
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list.inc']['makeQueryArray'][] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Hooks/AbstractDatabaseRecordList.php:GridElementsTeam\\Gridelements\\Hooks\\AbstractDatabaseRecordList';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'][] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Hooks/DatabaseRecordList.php:GridElementsTeam\\Gridelements\\Hooks\\DatabaseRecordList';
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['dragAndDropHideNewElementWizardInfoOverlay'] = array('type' => 'check', 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:dragAndDropHideNewElementWizardInfoOverlay');
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['hideColumnHeaders'] = array('type' => 'check', 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:hideColumnHeaders');
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['hideContentPreview'] = array('type' => 'check', 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:hideContentPreview');
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['showGridInformation'] = array('type' => 'check', 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:showGridInformation');
$GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:gridElements,dragAndDropHideNewElementWizardInfoOverlay,hideColumnHeaders,hideContentPreview,showGridInformation';
开发者ID:blumenbach,项目名称:bb-online.neu,代码行数:31,代码来源:ext_tables.php

示例6: loadExtensionTables

    /**
     * Run the loading process for the ext_tables.php file
     *
     * @param Loader $loader
     * @param array  $loaderInformation
     *
     * @return NULL
     */
    public function loadExtensionTables(Loader $loader, array $loaderInformation)
    {
        if (!$loaderInformation) {
            return null;
        }
        $createWizardHeader = [];
        $predefinedWizards = ['common', 'special', 'forms', 'plugins'];
        // Add the divider
        $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = [TranslateUtility::getLllString('tt_content.' . $loader->getExtensionKey() . '.header', $loader->getExtensionKey()), '--div--'];
        foreach ($loaderInformation as $e => $config) {
            SmartObjectRegister::register($config['modelClass']);
            $typeKey = $loader->getExtensionKey() . '_' . $e;
            ExtensionManagementUtility::addPlugin([TranslateUtility::getLllOrHelpMessage('content.element.' . $e, $loader->getExtensionKey()), $typeKey, $config['iconExt']], 'CType');
            if (!isset($GLOBALS['TCA']['tt_content']['types'][$typeKey]['showitem'])) {
                $baseTcaConfiguration = $this->wrapDefaultTcaConfiguration($config['fieldConfiguration'], (bool) $config['noHeader']);
                if (ExtensionManagementUtility::isLoaded('gridelements')) {
                    $baseTcaConfiguration .= ',tx_gridelements_container,tx_gridelements_columns';
                }
                $GLOBALS['TCA']['tt_content']['types'][$typeKey]['showitem'] = $baseTcaConfiguration;
            }
            // RTE
            if (isset($config['richTextFields']) && is_array($config['richTextFields']) && $config['richTextFields']) {
                foreach ($config['richTextFields'] as $field) {
                    $GLOBALS['TCA']['tt_content']['types'][$typeKey]['columnsOverrides'][$field] = ['config' => ['type' => 'text'], 'defaultExtras' => 'richtext:rte_transform[flag=rte_enabled|mode=ts_css]'];
                }
            }
            IconUtility::addTcaTypeIcon('tt_content', $typeKey, $config['icon']);
            $tabName = $config['tabInformation'] ? $config['tabInformation'] : $loader->getExtensionKey();
            if (!in_array($tabName, $predefinedWizards) && !in_array($tabName, $createWizardHeader)) {
                $createWizardHeader[] = $tabName;
            }
            ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.' . $tabName . '.elements.' . $typeKey . ' {
    icon = ' . $config['icon'] . '
    title = ' . TranslateUtility::getLllOrHelpMessage('wizard.' . $e, $loader->getExtensionKey()) . '
    description = ' . TranslateUtility::getLllOrHelpMessage('wizard.' . $e . '.description', $loader->getExtensionKey()) . '
    tt_content_defValues {
        CType = ' . $typeKey . '
    }
}
mod.wizards.newContentElement.wizardItems.' . $tabName . '.show := addToList(' . $typeKey . ')');
            $cObjectConfiguration = ['extensionKey' => $loader->getExtensionKey(), 'backendTemplatePath' => 'EXT:' . $loader->getExtensionKey() . '/Resources/Private/Templates/Content/' . $config['model'] . 'Backend.html', 'modelClass' => $config['modelClass']];
            $GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['ContentObject'][$loader->getExtensionKey() . '_' . GeneralUtility::camelCaseToLowerCaseUnderscored($config['model'])] = $cObjectConfiguration;
        }
        if ($createWizardHeader) {
            foreach ($createWizardHeader as $element) {
                ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.' . $element . ' {
    show = *
    header = ' . TranslateUtility::getLllOrHelpMessage('wizard.' . $element . '.header', $loader->getExtensionKey()) . '
}');
            }
        }
        return null;
    }
开发者ID:c2po,项目名称:autoloader,代码行数:63,代码来源:ContentObjects.php

示例7: defined

<?php

defined('TYPO3_MODE') or die;
// Register "old" FE plugin and hide layout, select_key and pages fields in BE
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:mod_indexed_search', 'indexed_search'], 'list_type', 'indexed_search');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexed_search'] = 'layout,select_key,pages';
开发者ID:,项目名称:,代码行数:6,代码来源:

示例8: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', 'SAE Provider Extension Static TypoScript');
// Adds the content element to the "Type" dropdown
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('Jumbotron', 'theme_jumbotron', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/jumbotron.gif'), 'CType');
开发者ID:sup7even,项目名称:TYPO3-schulung,代码行数:8,代码来源:ext_tables.php

示例9:

<?php

// search plugin
$pluginCode = 'solr_pi_results';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:solr/locallang_db.xml:tt_content.list_type_pi_results', $pluginCode), 'list_type', 'solr');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginCode] = 'layout,select_key,pages,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginCode] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginCode, 'FILE:EXT:solr/Configuration/FlexForms/Results.xml');
// adding the Search Form plugin
$pluginCode = 'solr_pi_search';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:solr/locallang_db.xml:tt_content.list_type_pi_search', $pluginCode), 'list_type', 'solr');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginCode] = 'layout,select_key,pages,recursive';
// adding the Frequent Search plugin
$pluginCode = 'solr_pi_frequentsearches';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:solr/locallang_db.xml:tt_content.list_type_pi_frequentsearches', $pluginCode), 'list_type', 'solr');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginCode] = 'layout,select_key,pages,recursive';
开发者ID:nxpthx,项目名称:ext-solr,代码行数:16,代码来源:tt_content.php

示例10: array

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_statistics', 'FILE:EXT:' . $_EXTKEY . '/plugins/statistics/flexform.xml');
// Plugin "table of contents".
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_toc'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_toc'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toc', $_EXTKEY . '_toc'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'plugins/toc/', 'Table of Contents');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_toc', 'FILE:EXT:' . $_EXTKEY . '/plugins/toc/flexform.xml');
// Plugin "toolbox".
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_toolbox'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_toolbox'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_toolbox', $_EXTKEY . '_toolbox'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_toolbox', 'FILE:EXT:' . $_EXTKEY . '/plugins/toolbox/flexform.xml');
// Plugin "validator".
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_validator'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_validator'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_validator', $_EXTKEY . '_validator'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_validator', 'FILE:EXT:' . $_EXTKEY . '/plugins/validator/flexform.xml');
// Register modules.
if (TYPO3_MODE == 'BE') {
    // Add modules after "web".
    if (!isset($TBE_MODULES['txdlfmodules'])) {
        $modules = array();
        foreach ($TBE_MODULES as $key => $val) {
            if ($key == 'web') {
                $modules[$key] = $val;
                $modules['txdlfmodules'] = '';
            } else {
                $modules[$key] = $val;
            }
        }
        $TBE_MODULES = $modules;
开发者ID:jacmendt,项目名称:goobi-presentation,代码行数:31,代码来源:ext_tables.php

示例11: array_push

    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Hooks/PageRenderer.php:KayStrobach\\Themes\\Hooks\\PageRenderer->addJSCSS';
}
/**
 * add themes overlay
 */
array_push($GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'], 'themefound');
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames']['themefound'] = 'extensions-themes-overlay-theme';
/**
* add sprites
	\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
		array(
			//'switch-off' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/power_orange.png',
			'switch-disable' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/power_grey.png',
			'switch-on' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/power_green.png',
			'contains-theme' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.png',
		),
		$_EXTKEY
	);
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_themes_buttoncontent');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:themes/Resources/Private/Language/ButtonContent.xlf:tt_content.CType_pi1', $_EXTKEY . '_buttoncontent_pi1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'buttoncontent_icon.gif'), 'CType');
// Register module icon
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon('module-themes', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/ext_icon.svg'));
$iconRegistry->registerIcon('content-button', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/Resources/Public/Icons/new_content_el_ButtonContent.svg'));
$iconRegistry->registerIcon('switch-off', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/Resources/Public/Icons/power_grey.svg'));
$iconRegistry->registerIcon('switch-on', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/Resources/Public/Icons/power_green.svg'));
$iconRegistry->registerIcon('switch-disable', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/Resources/Public/Icons/power_orange.svg'));
$iconRegistry->registerIcon('overlay-theme', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, array('source' => 'EXT:themes/Resources/Public/Icons/overlay_theme.svg'));
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = array(0 => 'LLL:EXT:themes/Resources/Private/Language/locallang.xlf:contains-theme', 1 => 'themes', 2 => 'extensions-themes-contains-theme');
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-themes'] = 'extensions-themes-contains-theme';
开发者ID:dkd,项目名称:themes,代码行数:31,代码来源:ext_tables.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:ods_ajaxmailsubscription/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/pi1/flexform.xml');
if (TYPO3_MODE == "BE") {
    $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_odsajaxmailsubscription_pi1_wizicon"] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi1/class.tx_odsajaxmailsubscription_pi1_wizicon.php';
}
开发者ID:bobosch,项目名称:ods_ajaxmailsubscription,代码行数:12,代码来源:ext_tables.php

示例13:

/*
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][COMMERCE_EXTKEY . '_pi1'] = 'layout,select_key';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][COMMERCE_EXTKEY . '_pi1'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(COMMERCE_EXTKEY . '_pi1', 'FILE:EXT:commerce/Configuration/FlexForms/flexform_pi1.xml');
/* ################# PI1 (product listing) ##################### */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:tt_content.list_type_pi1', COMMERCE_EXTKEY . '_pi1'), 'list_type', 'commerce');
/* ################# PI2 (basket) ##################### */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][COMMERCE_EXTKEY . '_pi2'] = 'layout,select_key,pages';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:tt_content.list_type_pi2', COMMERCE_EXTKEY . '_pi2'), 'list_type', 'commerce');
/* ################# PI3 (checkout) ##################### */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][COMMERCE_EXTKEY . '_pi3'] = 'layout,select_key,pages';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:tt_content.list_type_pi3', COMMERCE_EXTKEY . '_pi3'), 'list_type', 'commerce');
/* ################# PI4 (addresses) ##################### */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][COMMERCE_EXTKEY . '_pi4'] = 'layout,select_key,pages';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:tt_content.list_type_pi4', COMMERCE_EXTKEY . '_pi4'), 'list_type', 'commerce');
/* ################ PI6 (invoice) ############################*/
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][COMMERCE_EXTKEY . '_pi6'] = 'layout,select_key,pages';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:commerce/Resources/Private/Language/locallang_be.xml:tt_content.list_type_pi6', COMMERCE_EXTKEY . '_pi6'), 'list_type', 'commerce');
开发者ID:BenjaminBeck,项目名称:commerce,代码行数:29,代码来源:tt_content.php

示例14: array

    /* Add the plugin to the New Content Element wizard */
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi1_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi1/class.tx_wecmap_pi1_wizicon.php';
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi2_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi2/class.tx_wecmap_pi2_wizicon.php';
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi3_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi3/class.tx_wecmap_pi3_wizicon.php';
}
/* Set up the tt_content fields for the two frontend plugins */
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi2'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi3'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi2'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi3'] = 'pi_flexform';
/* Adds the plugins and flexforms to the TCA */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi2', $_EXTKEY . '_pi2'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY . '_pi3'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:wec_map/pi1/flexform_ds.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi2', 'FILE:EXT:wec_map/pi2/flexform_ds.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi3', 'FILE:EXT:wec_map/pi3/flexform_ds.xml');
// register Ajax scripts
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::deleteAll', 'tx_wecmap_module1_ajax->ajaxDeleteAll');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::deleteSingle', 'tx_wecmap_module1_ajax->ajaxDeleteSingle');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::updatePagination', 'tx_wecmap_module1_ajax->ajaxUpdatePagination');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::saveRecord', 'tx_wecmap_module1_ajax->ajaxSaveRecord');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::batchGeocode', 'tx_wecmap_module1_ajax->ajaxBatchGeocode');
/* Add static TS template for plugins */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/', 'WEC Map API');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi3/static/', 'WEC Table Map');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi2/static/', 'WEC Frontend User Map');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi1/static/', 'WEC Simple Map');
$TCA['tx_wecmap_external'] = array('ctrl' => array('title' => 'LLL:EXT:wec_map/locallang_db.xml:tx_wecmap_external', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'tca.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/icon_tx_wecmap_external_resource.gif'), 'feInterface' => array('fe_admin_fieldList' => 'title, url'));
开发者ID:subugoe,项目名称:typo3-wec_map,代码行数:31,代码来源:ext_tables.php

示例15: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\ContentProvider');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('Fluid Content', 'fluidcontent_content', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('fluidcontent') . 'ext_icon.gif'), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT, 'FluidTYPO3.Fluidcontent');
}
开发者ID:fluidtypo3,项目名称:fluidcontent,代码行数:9,代码来源:ext_tables.php


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