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


PHP ExtensionManagementUtility::addPiFlexFormValue方法代码示例

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


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

示例1: flexFormAutoLoader

 /**
  * Call this function at the end of your ext_tables.php to autoregister the flexforms
  * of the extension to the given plugins.
  *
  * @return void
  */
 public static function flexFormAutoLoader()
 {
     global $TCA, $_EXTKEY;
     $_extConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['nn_address']);
     $FlexFormPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/FlexForms/';
     $extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
     $FlexForms = \TYPO3\CMS\Core\Utility\GeneralUtility::getFilesInDir($FlexFormPath, 'xml');
     foreach ($FlexForms as $FlexForm) {
         if (preg_match("/^Model_(.*)\$/", $FlexForm)) {
             continue;
         }
         $fileKey = str_replace('.xml', '', $FlexForm);
         $pluginSignature = strtolower($extensionName . '_' . $fileKey);
         #$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
         $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key,recursive';
         $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
         $fileFlexForm = 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/' . $fileKey . '.xml';
         // Any flexform dir in extension config set?
         if ($_extConfig['flexFormPlugin'] != '') {
             if (is_dir(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($_extConfig['flexFormPlugin']))) {
                 // modify the relative path
                 $path = \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($_extConfig['flexFormPlugin']);
                 $path = preg_match('/^(.*)\\/$/', $path) ? $path : $path . '/';
                 $fileFlexForm = 'FILE:' . $path . $fileKey . '.xml';
             }
         }
         \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, $fileFlexForm);
     }
 }
开发者ID:Tricept,项目名称:nn_address,代码行数:35,代码来源:Flexform.php

示例2: addPluginFlexform

 /**
  * A utility method which calls ExtensionManagementUtility::addPiFlexFormValue
  *
  * This method performs the necessary string manipulations which are necessary
  * for extbase based extensions.
  *
  * @param string $extensionKey Mostly $_EXTKEY
  * @param string $pluginName Same value which is passed into
  *                           Tx_Extbase_Utility_Extension::registerPlugin() as a
  *                           second value
  * @param string $flexformFile Last part of the flexform file
  *                             without leading slash
  *
  * @return void
  *
  * @api
  */
 public static function addPluginFlexform($extensionKey, $pluginName, $flexformFile)
 {
     $extensionName = GeneralUtility::underscoredToUpperCamelCase($extensionKey);
     $pluginSignature = strtolower($extensionName . '_' . $pluginName);
     $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
     ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, self::getFlexformFileReference($extensionKey, $flexformFile));
 }
开发者ID:svenhartmann,项目名称:vantomas,代码行数:24,代码来源:ExtensionManagement.php

示例3: registerPlugin

 /**
  * @param $pluginName
  * @param $pluginTitle
  * @param null $flexFormClass
  */
 protected static function registerPlugin($pluginName, $pluginTitle, $flexFormClass = null)
 {
     ExtensionUtility::registerPlugin('BERGWERK.' . self::$_extKey, $pluginName, $pluginTitle);
     if (empty($flexFormClass)) {
         return;
     }
     /** @var FlexForm $flexFormInstance */
     $flexFormInstance = new $flexFormClass();
     if (!$flexFormInstance instanceof FlexForm) {
         return;
     }
     $flexForm = $flexFormInstance->render();
     $pluginSignature = strtolower(GeneralUtility::underscoredToUpperCamelCase(self::$_extKey)) . '_' . strtolower($pluginName);
     $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
     ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, $flexForm);
 }
开发者ID:bergwerk,项目名称:bwrk_address,代码行数:21,代码来源:Bootstrap.php

示例4: 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)
 {
     foreach ($loaderInformation as $info) {
         if (isset($info['pluginSignature'])) {
             $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$info['pluginSignature']] = 'layout,select_key,recursive';
             $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$info['pluginSignature']] = 'pi_flexform';
             ExtensionManagementUtility::addPiFlexFormValue($info['pluginSignature'], $info['path']);
         } elseif (isset($info['contentSignature'])) {
             $fields = GeneralUtility::trimExplode(',', $GLOBALS['TCA']['tt_content']['types'][$info['contentSignature']]['showitem']);
             if (!in_array('pi_flexform', $fields)) {
                 $GLOBALS['TCA']['tt_content']['types'][$info['contentSignature']]['showitem'] .= ',pi_flexform';
             }
             ExtensionManagementUtility::addPiFlexFormValue('*', $info['path'], $info['contentSignature']);
         }
     }
     return null;
 }
开发者ID:phogl,项目名称:autoloader,代码行数:25,代码来源:FlexForms.php

示例5:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
[adminUser = 1]
options.contextMenu.table.pages.items.850 = ITEM
options.contextMenu.table.pages.items.850 {
	name = Tx_Solr_initializeSolrConnections
	label = Initialize Solr Connections
	icon = ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($GLOBALS['PATHrel_solr'] . 'Resources/Images/cache-init-solr-connections.png') . '
	displayCondition = getRecord|is_siteroot = 1
	callbackAction = initializeSolrConnections
}

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

示例6:

<?php

// search plugin
$pluginCode = 'solr_pi_results';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:solr/Resources/Private/Language/locallang.xlf: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/Resources/Private/Language/locallang.xlf: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/Resources/Private/Language/locallang.xlf: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:sitegeist,项目名称:ext-solr,代码行数:16,代码来源:tt_content.php

示例7: defined

<?php

defined('TYPO3_MODE') or die;
call_user_func(function ($extKey) {
    $fieldLanguageFilePrefix = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:';
    $backendLanguageFilePrefix = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_be.xlf:';
    // Define field(s)
    $additionalColumns = ['table_content' => ['label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:field.table.bodytext', 'config' => ['type' => 'text', 'cols' => '80', 'rows' => '15', 'wizards' => ['table' => ['notNewRecords' => 1, 'type' => 'script', 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.table', 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif', 'module' => ['name' => 'wizard_table'], 'params' => ['xmlOutput' => 0]]]]], 'header_position' => ['label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.1', 1], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.2', 2], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.3', 3], [$fieldLanguageFilePrefix . 'shared.notset', 100]], 'default' => 0]], 'header_style' => ['label' => $fieldLanguageFilePrefix . 'tt_content.header_style', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.6', 6], [$fieldLanguageFilePrefix . 'shared.nostyle', 100]], 'default' => 0]], 'header_icon' => ['label' => $fieldLanguageFilePrefix . 'tt_content.header_icon', 'exclude' => true, 'config' => ['type' => 'input', 'size' => 12, 'eval' => '']], 'visibility' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.visibility', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.xs', 1], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.sm-xs', 2], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.md-lg', 3], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.lg', 4], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.xs', 5], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.sm-xs', 6], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.md-lg', 7], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.lg', 8], [$fieldLanguageFilePrefix . 'shared.notset', 100]]]], 'image_shape' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.image_shape', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.3', 3], [$fieldLanguageFilePrefix . 'shared.notset', 100]]]], 'image_responsive' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.image_responsive', 'config' => ['type' => 'check', 'default' => 1, 'items' => [['LLL:EXT:lang/locallang_core.xml:labels.enabled', 1]]]], 'gallery_width' => ['label' => $fieldLanguageFilePrefix . 'tt_content.gallery_width', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.6', 6], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.7', 7], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.8', 8], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.9', 9], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.10', 10]], 'default' => 0]], 'gallery_break' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.gallery_break', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.5', 5]], 'default' => 0]], 'gallery_carousel' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.gallery_carousel', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_common.xlf:disabled', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.3', 3]]]], 'layout_style' => ['exclude' => true, 'displayCond' => 'FIELD:layout:>:0', 'label' => $fieldLanguageFilePrefix . 'tt_content.layout_style', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'disableNoMatchingValueElement' => true, 'itemsProcFunc' => 'Sonority\\BootstrapComponents\\Backend\\ItemsProcFunc->layoutStyleItems']], 'wrap' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.wrap', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.4', 4], [$fieldLanguageFilePrefix . 'shared.notset', 100]], 'default' => 0]], 'container' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.container', 'config' => ['type' => 'check', 'default' => 1, 'items' => [['LLL:EXT:lang/locallang_core.xml:labels.enabled', 1]]]], 'section_frame' => ['label' => $fieldLanguageFilePrefix . 'tt_content.section_frame', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.6', 6]], 'default' => 0]], 'section_frame_style' => ['exclude' => true, 'displayCond' => 'FIELD:section_frame:>:0', 'label' => $fieldLanguageFilePrefix . 'tt_content.section_frame_style', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'disableNoMatchingValueElement' => true, 'itemsProcFunc' => 'Sonority\\BootstrapComponents\\Backend\\ItemsProcFunc->sectionFrameStyleItems']], 'template_media' => ['label' => $fieldLanguageFilePrefix . 'tt_content.template_media', 'exclude' => true, 'l10n_mode' => 'mergeIfNotBlank', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('template_media', ['appearance' => ['createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', 'headerThumbnail' => ['width' => '25', 'height' => '25c']], 'foreign_types' => [\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
                            --palette--;Einstellungen;bootstrapPalette,
                            --palette--;;filePalette']]], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])]];
    $GLOBALS['TCA']['tt_content']['columns']['imageorient']['config']['selicon_cols'] = 4;
    /*
     *  Set custom flexform for tt_content CType "table"
     */
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:' . $extKey . '/Configuration/FlexForms/Table.xml', 'table');
    // Add flexform-fields to CType "table"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'tablelayout', '--linebreak--, pi_flexform');
    // (Re)enable RTE for field "bodytext" in CType "table"
    $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'] = ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]'];
    $GLOBALS['TCA']['tt_content']['ctrl']['searchFields'] .= ',table_content';
    //$GLOBALS['TCA']['tt_content']['ctrl']['label_alt'] .= ',table_content';
    //$GLOBALS['TCA']['tt_content']['interface']['showRecordFieldList'] .= ',table_content';
    // Remove table-wizard from field "bodytext"
    unset($GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['table']);
    // Reset title for field "bodytext"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'bodytext;LLL:EXT:lang/locallang_general.xlf:LGL.text', 'table', 'replace:bodytext');
    // Add new field for table-content
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', '--linebreak--, table_content', 'table', 'after:bodytext');
    /*
     *  Modifications for dynamic 'layout_style'-field
     */
开发者ID:sonority,项目名称:bootstrap_components,代码行数:31,代码来源:tt_content.php

示例8: defined

defined('TYPO3_MODE') or die;
call_user_func(function () {
    $frontendLanguageFilePrefix = 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:';
    // Add the CType "fs_code_snippet"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', ['Code Snippet', 'fs_code_snippet', 'fs-code-snippet'], 'list', 'after');
    // Add the column programming_language too tt_content
    $newColumn = ['programming_language' => ['exclude' => true, 'label' => 'Programming Language', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['None', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_MIXED], ['Apache Config', \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::APACHE_CONFIGURATION], ['Bash', \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::BASH], ['Command-line', \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::COMMANDLINE], ['CSS', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_CSS], ['HTML', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_HTML], ['JavaScript', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_JAVASCRIPT], ['JSON', \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::JSON], ['PHP', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_PHP], ['Typoscript', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_TYPOSCRIPT], ['XML', \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_XML]], 'default' => \TYPO3\CMS\T3editor\Form\Element\T3editorElement::MODE_MIXED]]];
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $newColumn);
    // Reload on change
    $GLOBALS['TCA']['tt_content']['ctrl']['requestUpdate'] .= ',programming_language';
    // Use type icon
    $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['fs_code_snippet'] = 'fs-code-snippet';
    // What fields should be displayed
    $GLOBALS['TCA']['tt_content']['types']['fs_code_snippet'] = ['showitem' => '
            --palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
            --palette--;' . $frontendLanguageFilePrefix . 'palette.header;header,
            programming_language,pi_flexform,
            bodytext,
            --div--;' . $frontendLanguageFilePrefix . 'tabs.appearance,
				layout;' . $frontendLanguageFilePrefix . 'layout_formlabel,
				--palette--;' . $frontendLanguageFilePrefix . 'palette.appearanceLinks;appearanceLinks,
            --div--;' . $frontendLanguageFilePrefix . 'tabs.access,
                hidden;' . $frontendLanguageFilePrefix . 'field.default.hidden,
                --palette--;' . $frontendLanguageFilePrefix . 'palette.access;access,
        '];
    // Overwrite behavior of bodytext and pi_flexform for fs_code_snippet
    $GLOBALS['TCA']['tt_content']['types']['fs_code_snippet']['columnsOverrides'] = ['bodytext' => ['label' => 'Code Snippet', 'config' => ['type' => 'text', 'renderType' => 'fs_code_snippet', 'format' => 'html', 'rows' => 20]], 'pi_flexform' => ['label' => 'Command-line options', 'displayCond' => 'FIELD:programming_language:=:' . \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::COMMANDLINE]];
    // Add a flexform to the fs_code_snippet CType
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('', 'FILE:EXT:fs_code_snippet/Configuration/FlexForms/fs_code_snippet_flexform.xml', 'fs_code_snippet');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('fs_code_snippet', 'Configuration/TypoScript', 'Code Snippet CE');
});
开发者ID:ervaude,项目名称:fs_code_snippet,代码行数:31,代码来源:tt_content.php

示例9: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Contentelement', 'Layerslider - Contentelement');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'LayerSlider');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_sglayerslider_domain_model_slider', 'EXT:sg_layerslider/Resources/Private/Language/locallang_csh_tx_sglayerslider_domain_model_slider.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sglayerslider_domain_model_slider');
$TCA['tx_sglayerslider_domain_model_slider'] = array('ctrl' => array('title' => 'LLL:EXT:sg_layerslider/Resources/Private/Language/locallang_db.xlf:tx_sglayerslider_domain_model_slider', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,description,layers,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Slider.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_sglayerslider_domain_model_slider.gif'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_sglayerslider_domain_model_layer', 'EXT:sg_layerslider/Resources/Private/Language/locallang_csh_tx_sglayerslider_domain_model_layer.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sglayerslider_domain_model_layer');
$TCA['tx_sglayerslider_domain_model_layer'] = array('ctrl' => array('title' => 'LLL:EXT:sg_layerslider/Resources/Private/Language/locallang_db.xlf:tx_sglayerslider_domain_model_layer', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,slidedelay,timeshift,transition2d,transition3d,deeplink,elements,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Layer.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_sglayerslider_domain_model_layer.gif'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_sglayerslider_domain_model_element', 'EXT:sg_layerslider/Resources/Private/Language/locallang_csh_tx_sglayerslider_domain_model_element.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sglayerslider_domain_model_element');
$TCA['tx_sglayerslider_domain_model_element'] = array('ctrl' => array('title' => 'LLL:EXT:sg_layerslider/Resources/Private/Language/locallang_db.xlf:tx_sglayerslider_domain_model_element', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,elementtext,image,borderleft,bordertop,elementhight,textcolor,slidedirin,slidedirout,durationin,durationout,delayin,delayout,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Element.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_sglayerslider_domain_model_element.gif'));
$pluginSignature = 'sglayerslider_contentelement';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:sg_layerslider/Configuration/FlexForms/flexform_slider.xml');
开发者ID:BenjaminBeck,项目名称:sg_layerslider,代码行数:19,代码来源:ext_tables.php

示例10: defined

<?php

defined('TYPO3_MODE') or die;
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cartography_map');
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
//    'tx_news_domain_model_media', 'EXT:news/Resources/Private/Language/locallang_csh_media.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Cartography');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Cartography', 'Map');
$TCA['tt_content']['types']['list']['subtypes_addlist']['cartography_cartography'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('cartography_cartography', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Plugin.xml');
$TCA['tt_content']['types']['list']['subtypes_excludelist']['cartography_cartography'] = 'recursive, select_key, pages';
开发者ID:sorenmalling,项目名称:cartography,代码行数:11,代码来源:ext_tables.php

示例11: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Download', 'NetBrothers Downloader');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'NetBrothers Downloader');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_nbdownloader_domain_model_download', 'EXT:nbdownloader/Resources/Private/Language/locallang_csh_tx_nbdownloader_domain_model_download.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_nbdownloader_domain_model_download');
$GLOBALS['TCA']['tx_nbdownloader_domain_model_download'] = array('ctrl' => array('title' => 'LLL:EXT:nbdownloader/Resources/Private/Language/locallang_db.xlf:tx_nbdownloader_domain_model_download', 'label' => 'filename', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'filename,source,download_name,abstract,description,counter,author,version,public_date,cat,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Download.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nbdownloader_domain_model_download.gif'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_nbdownloader_domain_model_category', 'EXT:nbdownloader/Resources/Private/Language/locallang_csh_tx_nbdownloader_domain_model_category.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_nbdownloader_domain_model_category');
$GLOBALS['TCA']['tx_nbdownloader_domain_model_category'] = array('ctrl' => array('title' => 'LLL:EXT:nbdownloader/Resources/Private/Language/locallang_db.xlf:tx_nbdownloader_domain_model_category', 'label' => 'category', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'category,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Category.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nbdownloader_domain_model_category.gif'));
//Add ts config to page (content element)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:nbdownloader/Configuration/TypoScript/PageTsConfig.ts">');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_download'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_download', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Settings.xml');
// new!
开发者ID:netbrothers-gmbh,项目名称:typo3-ext-nbdownloader,代码行数:18,代码来源:ext_tables.php

示例12: array

// -----------------------------------------------------------------------
// Dropdown Menü
// -----------------------------------------------------------------------
// SysFolder: "Enthält Erweiterung..." Option zum Dropdown hinzufügen
$TCA['pages']['columns']['module']['config']['items'][] = array('Dropdown-Menü (ddmenu)', 'ddmenu');
if (TYPO3_MODE == 'BE') {
    // Icon statt Seiten-Icon verwenden, wenn "Enthält Erweiterung" gewählt wurde
    t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-ddmenu', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ddmenu_icon.gif');
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_t3pimper_pi1_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi1/class.tx_t3pimper_pi1_wizicon.php';
}
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:t3pimper/locallang.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'list_type');
// add flexform to pi1
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages,recursive';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:t3pimper/pi1/flexform.xml');
// -----------------------------------------------------------------------
// Headline Farbe
// -----------------------------------------------------------------------
$tempColumns = array("tx_t3pimper_headercolor" => array('exclude' => 1, 'label' => 'LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headercolor', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headercolor.l.0', '0'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headercolor.l.1', '1'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headercolor.l.6', '6')), 'default' => '0')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns("tt_content", $tempColumns, 1);
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes("tt_content","tx_t3pimper_headercolor;;;;1-1-1", "", "after:header_layout");
$GLOBALS['TCA']['tt_content']['palettes']['header']['showitem'] = str_replace(', header_layout', ',tx_t3pimper_headercolor;;;;1-1-1, header_layout', $GLOBALS['TCA']['tt_content']['palettes']['header']['showitem']);
$GLOBALS['TCA']['tt_content']['palettes']['headers']['showitem'] = str_replace(', header_layout', ',tx_t3pimper_headercolor;;;;1-1-1, header_layout', $GLOBALS['TCA']['tt_content']['palettes']['headers']['showitem']);
// -----------------------------------------------------------------------
// Headline Schmuck (Linie drunter etc.)
//
// Kann im Page Config verändert und überschrieben werden:
// TCEFORM.tt_content.tx_t3pimper_headerdeco.removeItems = 1,2,3
// -----------------------------------------------------------------------
$tempColumns = array("tx_t3pimper_headerdeco" => array('exclude' => 1, 'label' => 'LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.0', '0'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.1', '1'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.2', '2'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.3', '3'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.4', '4'), array('LLL:EXT:t3pimper/locallang_db.xml:tt_content.tx_t3pimper_headerdeco.l.5', '5')), 'default' => '0')));
开发者ID:99grad,项目名称:TYPO3.Extbase.t3pimper,代码行数:31,代码来源:ext_tables.php

示例13: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('html5videoplayer_pivideoplayer', 'FILE:EXT:html5videoplayer/Configuration/FlexForm/Video.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_html5videoplayer_domain_model_video');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_html5videoplayer_video_content');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('html5videoplayer', 'Configuration/TypoScript/Videoplayer', 'HTML5 Video Player');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('html5videoplayer', 'PiVideoplayer', 'Videoplayer');
if (TYPO3_MODE == 'BE') {
    $GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']['HVP\\Html5videoplayer\\Wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('html5videoplayer') . 'Classes/Wizicon.php';
}
开发者ID:visol,项目名称:html5videoplayer,代码行数:13,代码来源:ext_tables.php

示例14: defined

<?php

defined('TYPO3_MODE') or die;
//Extra fields for the tt_content table
$extraContentColumns = array('header_position' => array('label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position', 'exclude' => true, 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', ''), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.1', 'center'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.2', 'right'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.3', 'left')), 'default' => '')), 'image_compression' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.1', 1), array('GIF/256', 10), array('GIF/128', 11), array('GIF/64', 12), array('GIF/32', 13), array('GIF/16', 14), array('GIF/8', 15), array('PNG', 39), array('PNG/256', 30), array('PNG/128', 31), array('PNG/64', 32), array('PNG/32', 33), array('PNG/16', 34), array('PNG/8', 35), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.15', 21), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.16', 22), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.17', 24), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.18', 26), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.19', 28)))), 'image_effects' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.0', 0), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.1', 1), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.2', 2), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.3', 3), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.4', 10), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.5', 11), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.6', 20), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.7', 23), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.8', 25), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.9', 26)))), 'image_noRows' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_noRows', 'config' => array('type' => 'check', 'items' => array('1' => array('0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_noRows.I.0')))), 'section_frame' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('', '0'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.1', '1'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.2', '5'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.3', '6'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.4', '10'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.5', '11'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.6', '12'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.7', '20'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.8', '21')), 'default' => '0')), 'spaceAfter' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceAfter', 'config' => array('type' => 'input', 'size' => '5', 'max' => '5', 'eval' => 'int', 'range' => array('lower' => '0'), 'default' => 0)), 'spaceBefore' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceBefore', 'config' => array('type' => 'input', 'size' => '5', 'max' => '5', 'eval' => 'int', 'range' => array('lower' => '0'), 'default' => 0)), 'table_bgColor' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', '0'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.1', '1'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.2', '2'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.3', '200'), array('-----', '--div--'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.5', '240'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.6', '241'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.7', '242'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.8', '243'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.9', '244')), 'default' => '0')), 'table_border' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_border', 'config' => array('type' => 'input', 'size' => '3', 'max' => '3', 'eval' => 'int', 'range' => array('upper' => '20', 'lower' => '0'), 'default' => 0)), 'table_cellpadding' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_cellpadding', 'config' => array('type' => 'input', 'size' => '3', 'max' => '3', 'eval' => 'int', 'range' => array('upper' => '200', 'lower' => '0'), 'default' => 0)), 'table_cellspacing' => array('exclude' => true, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_cellspacing', 'config' => array('type' => 'input', 'size' => '3', 'max' => '3', 'eval' => 'int', 'range' => array('upper' => '200', 'lower' => '0'), 'default' => 0)));
// Adding fields to the tt_content table definition in TCA
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $extraContentColumns);
// Add flexform
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:css_styled_content/Configuration/FlexForms/table.xml', 'table');
// Add content elements
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'] = array_merge($GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'], array('textpic' => 'mimetypes-x-content-text-picture', 'image' => 'mimetypes-x-content-image', 'text' => 'mimetypes-x-content-text'));
array_splice($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'], 2, 0, array(array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.1', 'text', 'content-text'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.2', 'textpic', 'content-textpic'), array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.3', 'image', 'content-image')));
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['default'] = 'text';
// Add palettes
$GLOBALS['TCA']['tt_content']['palettes'] = array_replace($GLOBALS['TCA']['tt_content']['palettes'], array('header' => array('showitem' => '
				header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_formlabel,
				--linebreak--,
				header_layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_layout_formlabel,
				header_position;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position_formlabel,
				date;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:date_formlabel,
				--linebreak--,
				header_link;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel
			'), 'headers' => array('showitem' => '
				header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_formlabel,
				--linebreak--,
				header_layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_layout_formlabel,
				header_position;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position_formlabel,
				date;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:date_formlabel,
				--linebreak--,
				header_link;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel,
				--linebreak--,
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:31,代码来源:tt_content.php

示例15: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Arzdsdste', 'Arzte');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Arztecategory', 'Arzte Category ');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:Configuration/FlexForms/flexform_arzte.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Arzte');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_arzte_domain_model_category', 'EXT:arzte/Resources/Private/Language/locallang_csh_tx_arzte_domain_model_category.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_arzte_domain_model_category');
$GLOBALS['TCA']['tx_arzfgfgfgte_domain_model_category'] = array('ctrl' => array('title' => 'LLL:EXT:arzte/Resources/Private/Language/locallang_db.xlf:tx_arzte_domain_model_category', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,image,subheader,description,detail,link,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Category.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_arzte_domain_model_category.gif'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_arzte_domain_model_doctorelist', 'EXT:arzte/Resources/Private/Language/locallang_csh_tx_arzte_domain_model_doctorelist.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_arzte_domain_model_doctorelist');
$GLOBALS['TCA']['tx_arzte_domain_model_doctorelist'] = array('ctrl' => array('title' => 'LLL:EXT:arzte/Resources/Private/Language/locallang_db.xlf:tx_arzte_domain_model_doctorelist', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,image,short_information,address,logo,headline,detailedinformation,link,categoryselect,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/DoctoreList.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_arzte_domain_model_doctorelist.gif'));
开发者ID:typo3union,项目名称:Python,代码行数:16,代码来源:ext_tables.php


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