/** * 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); } }
/** * 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)); }
/** * @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); }
/** * 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; }
\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';
<?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';
<?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 */
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'); });
<?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');
<?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';
<?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!
// ----------------------------------------------------------------------- // 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')));
<?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'; }
<?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--,
<?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'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tt_news_cat'); $TCA['tt_news_cat'] = array( 'ctrl' => array( 'title' => 'LLL:EXT:customnewstagcloud/Resources/Private/Language/locallang_db.xlf:tt_news_cat', 'label' => 'uid', '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' => 'uid,pid,hidden,starttime,title,title_lang_ol,single_pid,parent_category,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/NewsCategory.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tt_news_cat.gif' ), ); */ $pluginSignature = str_replace('_', '', $_EXTKEY) . '_customnewstagcloud'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_customnewstagcloud.xml');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Add flexform \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:css_styled_content/flexform_ds.xml', 'table'); $GLOBALS['TCA']['tt_content']['types']['table']['showitem'] = 'CType;;4;;1-1-1, hidden, header;;3;;2-2-2, linkToTop;;;;4-4-4, --div--;LLL:EXT:cms/locallang_ttc.xlf:CType.I.5, layout;;10;;3-3-3, cols, bodytext;;9;nowrap:wizards[table], pi_flexform, --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access, starttime, endtime, fe_group'; $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][0] = array('LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.0', '0'); $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][9] = array('LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.9', '66'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/', 'CSS Styled Content'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v4.5/', 'CSS Styled Content TYPO3 v4.5'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v4.6/', 'CSS Styled Content TYPO3 v4.6'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v4.7/', 'CSS Styled Content TYPO3 v4.7'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v6.0/', 'CSS Styled Content TYPO3 v6.0'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v6.1/', 'CSS Styled Content TYPO3 v6.1');
* @author Reinhard Führicht <*****@*****.**> * @package Tx_Formhandler */ if (!defined('TYPO3_MODE')) { die('Access denied.'); } if (TYPO3_MODE === 'BE') { $TCA['tt_content']['types'][$_EXTKEY . '_pi1']['showitem'] = ' --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.plugin,pi_flexform, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended '; // Add flexform field to plugin options $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform'; $file = 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_ds.xml'; // Add flexform DataStructure \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', $file, $_EXTKEY . '_pi1'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:formhandler/Resources/Private/Language/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'CType'); \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Typoheads.' . $_EXTKEY, 'web', 'log', 'bottom', array('Module' => 'index, view, selectFields, export, deleteLogRows'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/moduleicon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml')); } \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/ExampleConfiguration', 'Example Configuration'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_formhandler_log'); $TCA['pages']['columns']['module']['config']['items'][] = array('LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:title', 'formlogs', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif'); \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-formlogs', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/pagetreeicon.png');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Google Services'); /** * Sitemap */ \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'piSitemap', 'Google Services: Sitemap'); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['googleservices_pisitemap'] = 'pi_flexform'; require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('google_services', 'Classes/User/Provider.php'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('googleservices_pisitemap', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/piSitemap.xml'); /** * Document */ \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'piDocument', 'Google Services: Document View'); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['googleservices_pidocument'] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('googleservices_pidocument', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/piDocument.xml');
pi_flexform, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour, bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.media_formlabel, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended'); $baseDefaultExtrasOfBodytext = ''; if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) { $baseDefaultExtrasOfBodytext = $GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'] . ':'; } if (!is_array($GLOBALS['TCA']['tt_content']['types']['media']['columnsOverrides'])) { $GLOBALS['TCA']['tt_content']['types']['media']['columnsOverrides'] = array(); } if (!is_array($GLOBALS['TCA']['tt_content']['types']['media']['columnsOverrides']['bodytext'])) { $GLOBALS['TCA']['tt_content']['types']['media']['columnsOverrides']['bodytext'] = array(); } $GLOBALS['TCA']['tt_content']['types']['media']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform[mode=ts_css]'; $GLOBALS['TCA']['tt_content']['palettes']['multimediafiles'] = array('showitem' => 'multimedia;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:multimedia_formlabel, bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.multimedia_formlabel'); if (!is_array($GLOBALS['TCA']['tt_content']['types']['multimedia']['columnsOverrides'])) { $GLOBALS['TCA']['tt_content']['types']['multimedia']['columnsOverrides'] = array(); } if (!is_array($GLOBALS['TCA']['tt_content']['types']['multimedia']['columnsOverrides']['bodytext'])) { $GLOBALS['TCA']['tt_content']['types']['multimedia']['columnsOverrides']['bodytext'] = array(); } $GLOBALS['TCA']['tt_content']['types']['multimedia']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap'; // Add flexform \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:mediace/Configuration/FlexForms/media.xml', 'media');
<?php defined('TYPO3_MODE') or die; /*************** * Plugin */ \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('news', 'Pi1', 'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:pi1_title'); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['news_pi1'] = 'recursive,select_key,pages'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['news_pi1'] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('news_pi1', 'FILE:EXT:news/Configuration/FlexForms/flexform_news.xml'); /*************** * Default TypoScript */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('news', 'Configuration/TypoScript', 'News'); /*************** * Sitemap TypoScript */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('news', 'Configuration/TypoScript/Sitemap', 'News Sitemap');
<?php defined('TYPO3_MODE') or die; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:felogin/flexform.xml', 'login'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:cms/locallang_ttc.xlf:CType.I.10', 'login', 'i/tt_content_login.gif'), 'mailform', 'after'); $GLOBALS['TCA']['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.plugin,pi_flexform;;;;1-1-1,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended';
<?php defined('TYPO3_MODE') or die; // Include new content elements to modWizards \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_slider/Configuration/PageTSconfig/FluidStyledSlider.ts">'); // Register for hook to show preview of tt_content element of CType="fluid_styled_slider" in page module $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['fluid_styled_slider'] = \DanielGoerz\FluidStyledSlider\Hooks\FsSliderPreviewRenderer::class; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid Styled Slider'); // Add a flexform to the fs_slider CType \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('', 'FILE:EXT:fluid_styled_slider/Configuration/FlexForms/fs_slider_flexform.xml', 'fs_slider');
<?php // load extConf $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['px_hybrid_auth']); $supportedProviders = array(); foreach ($extConf['provider.'] as $provider => $config) { $provider = str_replace('.', '', $provider); if ((bool) $config['enabled']) { $supportedProviders[$provider] = TRUE; } } if (count($supportedProviders) > 0) { \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:px_hybrid_auth/Configuration/FlexForms/Login.xml', 'px_hybrid_auth_login'); } else { \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:px_hybrid_auth/Configuration/FlexForms/Error.xml', 'px_hybrid_auth_login'); } \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:px_hybrid_auth/Resources/Private/Language/locallang_db.xlf:CType.I.px_hybrid_auth_login', 'px_hybrid_auth_login', 'EXT:px_hybrid_auth/Resources/Public/Icons/px_hybrid_auth_login_form.gif'), 'login', 'after'); $GLOBALS['TCA']['tt_content']['types']['px_hybrid_auth_login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.plugin,pi_flexform;;;;1-1-1,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,' . '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,' . '--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended';
* Include Backend Module */ if (TYPO3_MODE === 'BE' && !$confArr['disableModule'] && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) { \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('In2.' . $_EXTKEY, 'web', 'm1', '', array('UserBackend' => 'list,userLogout'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf')); } /** * Static TypoScript */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Main', 'Main Settings'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Layout', 'Add Layout CSS'); /** * Flexform */ $pluginSignature = str_replace('_', '', $_EXTKEY) . '_pi1'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/FlexFormPi1.xml'); /** * Load UserFunc for FlexForm Field selection */ if (TYPO3_MODE == 'BE') { require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Utility/FlexFormFieldSelection.php'; } /** * Table configuration fe_users */ $tempColumns = array('gender' => array('exclude' => 0, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender', 'config' => array('type' => 'radio', 'items' => array(array('LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender.item0', '0'), array('LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender.item1', '1')))), 'date_of_birth' => array('exclude' => 0, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.dateOfBirth', 'config' => array('type' => 'input', 'size' => 10, 'max' => 20, 'eval' => 'date', 'checkbox' => '0', 'default' => '')), 'crdate' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.crdate', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'datetime', 'readOnly' => 1, 'default' => time())), 'tstamp' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.tstamp', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'datetime', 'readOnly' => 1, 'default' => time())), 'tx_femanager_confirmedbyuser' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.registrationconfirmedbyuser', 'config' => array('type' => 'check', 'default' => 0)), 'tx_femanager_confirmedbyadmin' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.registrationconfirmedbyadmin', 'config' => array('type' => 'check', 'default' => 0))); $fields = 'crdate, tstamp, tx_femanager_confirmedbyuser, tx_femanager_confirmedbyadmin'; if (empty($confArr['disableLog'])) { $tempColumns['tx_femanager_log'] = array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.log', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_femanager_domain_model_log', 'foreign_field' => 'user', 'maxitems' => 1000, 'minitems' => 0, 'appearance' => array('collapseAll' => 1, 'expandSingle' => 1))); $fields .= ', tx_femanager_log'; }
<?php defined('TYPO3_MODE') or die; $pluginModes = array('Pi1' => 'ExtList', 'Cached' => 'ExtList (Cached)'); foreach ($pluginModes as $ident => $label) { /** * Register plugin as page content */ $extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase('pt_extlist'); $pluginSignature = strtolower($extensionName) . '_' . strtolower($ident); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages'; /** * Register flexform */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:pt_extlist/Configuration/FlexForms/Flexform.xml'); }
<?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');
<?php defined('TYPO3_MODE') || die; \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Doodle', 'Doodle - List of polls'); // Register the FlexForms $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_doodle'] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_doodle', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_doodle.xml'); // Register the static TypoScript \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Doodle'); // Hook into "Flush general caches" $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] = 'Causal\\Doodle\\Hooks\\DataHandler->clearCacheCmd';
<?php $pluginSignature = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase('typo3_forum')) . '_pi1'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:typo3_forum/Configuration/FlexForms/Pi1.xml'); $pluginSignature = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase('typo3_forum')) . '_widget'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:typo3_forum/Configuration/FlexForms/Widgets.xml');
/*************** * Add Content Elements to List */ $backupCTypeItems = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items']; $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] = array(array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:theme_name', '--div--'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.texticon', 'bootstrap_package_texticon', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.carousel', 'bootstrap_package_carousel', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.accordion', 'bootstrap_package_accordion', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.tab', 'bootstrap_package_tab', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.panel', 'bootstrap_package_panel', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.listgroup', 'bootstrap_package_listgroup', 'i/tt_content_header.gif'), array('LLL:fileadmin/Template/Resources/Private/Language/Backend.xlf:content_element.external_media', 'bootstrap_package_external_media', 'i/tt_content_header.gif')); foreach ($backupCTypeItems as $key => $value) { $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = $value; } unset($key); unset($value); unset($backupCTypeItems); /*************** * Add FlexForms for content element configuration */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:fileadmin/Template/Configuration/FlexForms/Carousel.xml', 'bootstrap_package_carousel'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:fileadmin/Template/Configuration/FlexForms/Tab.xml', 'bootstrap_package_tab'); /*************** * Modify the tt_content TCA */ $tca = array('ctrl' => array('requestUpdate' => $GLOBALS['TCA']['tt_content']['ctrl']['requestUpdate'] . ',icon_type', 'typeicons' => array('bootstrap_package_panel' => 'tt_content_header.gif', 'bootstrap_package_listgroup' => 'tt_content_header.gif', 'bootstrap_package_texticon' => 'tt_content_header.gif')), 'palettes' => array('bootstrap_package_header' => array('canNotCollapse' => 1, 'showitem' => ' header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel, --linebreak--, subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader_formlabel, --linebreak--, header_layout;LLL:EXT:cms/locallang_ttc.xlf:header_layout_formlabel, --linebreak--, header_link;LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel '), 'bootstrap_package_headersimple' => array('canNotCollapse' => 1, 'showitem' => ' header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel, --linebreak--, header_layout;LLL:EXT:cms/locallang_ttc.xlf:header_layout_formlabel