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


PHP ExtensionManagementUtility::addTcaSelectItem方法代码示例

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


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

示例1: addDoktypeToPagesLanguageOverlay

 public static function addDoktypeToPagesLanguageOverlay($extKey, $doktype, $iconName, $alias = null)
 {
     if (static::useCompatibility6()) {
         Compatibility6\CustomPageUtility::addDoktypeToPagesLanguageOverlay($extKey, $doktype, $iconName, $alias);
         return;
     }
     $identifier = 'apps-pagetree-' . strtolower($iconName);
     $extRelPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($extKey);
     $customPageIcon = $extRelPath . 'Resources/Public/Icons/' . $identifier . '.svg';
     // Add new page type as possible select item:
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('pages_language_overlay', 'doktype', array('LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_be.xlf:pages.doktype.' . ($alias === null ? $doktype : $alias), $doktype, $customPageIcon), '1', 'after');
 }
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:12,代码来源:CustomPageUtility.php

示例2: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Qbus Bootstrap');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('Bildergalerie', 'qbbootstrap_gallery', 'i/tt_content_image.gif'), 'textpic', 'after');
$GLOBALS['TCA']['tt_content']['types']['qbbootstrap_gallery']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general, --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,  image, --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imagelinks;imagelinks, layout, --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.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories, --div--;LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xlf:gridElements, tx_gridelements_container, tx_gridelements_columns';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['qbbootstrap_gallery'] = 'mimetypes-x-content-image';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['qbbootstrap_gallery'] = 'tt_content_image.gif';
开发者ID:qbus-agentur,项目名称:qbbootstrap,代码行数:10,代码来源:ext_tables.php

示例3: IN

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

示例4: addTcaSelectItemInsertsItemAtSpecifiedPosition

 /**
  * @test
  * @dataProvider addTcaSelectItemDataProvider
  * @param $relativeToField
  * @param $relativePosition
  * @param $expectedResultArray
  */
 public function addTcaSelectItemInsertsItemAtSpecifiedPosition($relativeToField, $relativePosition, $expectedResultArray)
 {
     $GLOBALS['TCA'] = array('testTable' => array('columns' => array('testField' => array('config' => array('items' => array('0' => array('firstElement'), '1' => array('matchMe'), 2 => array('thirdElement')))))));
     ExtensionManagementUtility::addTcaSelectItem('testTable', 'testField', array('insertedElement'), $relativeToField, $relativePosition);
     $this->assertEquals($expectedResultArray, $GLOBALS['TCA']['testTable']['columns']['testField']['config']['items']);
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:13,代码来源:ExtensionManagementUtilityTest.php

示例5: call_user_func

<?php

if (version_compare(TYPO3_branch, '6.2.99', '>')) {
    call_user_func(function ($extKey, $table) {
        $extRelPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($extKey);
        $customPageIcon = $extRelPath . 'Resources/Public/Icons/doktype_icon.svg';
        $archiveDoktype = \JS\JsBmiCalculator\Controller\PageControllerInterface::DOKTYPE_RAW;
        // Add new page type as possible select item:
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem($table, 'doktype', ['LLL:EXT:js_bmi_calculator/Resources/Private/Language/locallang.xlf:pages.doktype', $archiveDoktype, $customPageIcon], '254', 'after');
        // Add icon for new page type:
        \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA']['pages'], ['ctrl' => ['typeicon_classes' => [$archiveDoktype => 'apps-pagetree-bmi']]]);
    }, 'js_bmi_calculator', 'pages');
}
开发者ID:jainishsenjaliya,项目名称:js_bmi_calculator,代码行数:13,代码来源:pages.php

示例6: defined

<?php

defined('TYPO3_MODE') or die;
call_user_func(function () {
    $languageFilePrefix = 'LLL:EXT:t3dd16/Resources/Private/Language/Backend.xlf:';
    foreach (['card', 'price', 'fullwidthimage', 'sponsors'] as $item) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', [$languageFilePrefix . 'tt_content.' . $item . '.title', $item, 'content-textpic'], 'textmedia', 'after');
        $GLOBALS['TCA']['tt_content']['types'][$item] = $GLOBALS['TCA']['tt_content']['types']['textmedia'];
        $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'][$item] = 'mimetypes-x-content-text-media';
    }
    $GLOBALS['TCA']['tt_content']['palettes']['header'] = $GLOBALS['TCA']['tt_content']['palettes']['headers'];
});
开发者ID:t3dd,项目名称:T3DD16.Backend,代码行数:12,代码来源:tt_content.php

示例7: unserialize

<?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';
开发者ID:kalypso63,项目名称:px_hybrid_auth,代码行数:18,代码来源:tt_content.php

示例8: defined

<?php

defined('TYPO3_MODE') or die;
/**
 * Registering CType "media" and "multimedia"
 */
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['multimedia'] = 'mimetypes-x-content-multimedia';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['media'] = 'mimetypes-x-content-multimedia';
// Register new CType in item list just before "menu"
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.7', 'multimedia', 'content-special-media'), 'menu', 'before');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.18', 'media', 'content-special-media'), 'menu', 'before');
// Add new field
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', array('multimedia' => array('label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:multimedia', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => 'txt,html,htm,class,swf,swa,dcr,wav,avi,au,mov,asf,mpg,wmv,mp3,mp4,m4v', 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'], 'uploadfolder' => 'uploads/media', 'size' => '2', 'maxitems' => '1', 'minitems' => '0'))));
// add type definition and palette
$GLOBALS['TCA']['tt_content']['types']['multimedia'] = array('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.media,
			--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.multimediafiles;multimediafiles,
		--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.extended');
$GLOBALS['TCA']['tt_content']['types']['media'] = array('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.media,
			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,
开发者ID:hlop,项目名称:TYPO3.CMS,代码行数:31,代码来源:tt_content.php

示例9: array_splice

}
if ($groupFound && $groupPosition) {
    // add the new CType item below CType
    array_splice($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'], $groupPosition + 1, 0, array(0 => $additionalCTypeItem));
} else {
    // nothing found, add two items (group + new CType) at the bottom of the list
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms', '--div--'));
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', $additionalCTypeItem);
}
/**
 * CType "mailform"
 */
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
    $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['mailform'] = 'mimetypes-x-content-form';
    $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['forms'] = array('notNewRecords' => 1, 'enableByTypeConfig' => 1, 'type' => 'script', 'title' => 'LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.forms', 'icon' => 'EXT:compatibility6/Resources/Public/Images/wizard_forms.gif', 'module' => array('name' => 'wizard_forms', 'urlParameters' => array('special' => 'formtype_mail')), 'params' => array('xmlOutput' => 0));
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:CType.I.8', 'mailform', 'content-elements-mailform'), 'search', 'before');
    // set up the fields
    $GLOBALS['TCA']['tt_content']['types']['mailform'] = array('showitem' => '
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
				bodytext;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.mailform_formlabel,
			--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
			--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
			--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour,
				--palette--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:palette.mailform;mailform,
			--div--;LLL:EXT:compatibility6/Resources/Private/Language/locallang_ttc.xlf:tabs.extended');
    $baseDefaultExtrasOfBodytext = '';
    if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) {
开发者ID:cabservicesag,项目名称:compatibility6,代码行数:31,代码来源:tt_content.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$sliderColumns = array('tx_news_slideit_slider_teaser' => array('l10n_mode' => 'noCopy', 'label' => 'Spezieller Text für den Slider Teaser', 'config' => array('type' => 'text', 'cols' => 30, 'rows' => 5)), 'tx_news_slideit_slider_image' => array('label' => 'Spezielles Bild für den Slider Teaser', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('tx_news_slideit_slider_image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'maxitems' => 1, 'foreign_types' => array('0' => array('showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;txMicroportalsImageOverlayPalette,
								--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;txMicroportalsImageOverlayPalette,
								--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'tx_news_slideit_display_news' => array('label' => 'Diese News anzeigen', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_news_domain_model_news', 'maxitems' => 1, 'wizards' => array('suggest' => array('type' => 'suggest')))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tx_news_domain_model_news', 'type', array('Externe News', 'tx_news_slideit_type_other'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_news_domain_model_news', '--div--;Spezieller Slider (optional),tx_news_slideit_slider_teaser,tx_news_slideit_slider_image', '', 'after:content_elements');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_news_domain_model_news', $sliderColumns);
$GLOBALS['TCA']['tx_news_domain_model_news']['types']['tx_news_slideit_type_other'] = array('showitem' => 'l10n_parent, l10n_diffsource,
			title;;paletteCoreWithoutTopNews,;;;;2-2-2, tx_news_slideit_display_news;;paletteNavtitle,;;;;3-3-3,

		--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,
			--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;paletteAccess,

		--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,');
$GLOBALS['TCA']['tx_news_domain_model_news']['palettes']['paletteCoreWithoutTopNews'] = array('showitem' => 'type, sys_language_uid, hidden,', 'canNotCollapse' => FALSE);
unset($sliderColumns);
开发者ID:Intera,项目名称:typo3-extension-news_slideit,代码行数:22,代码来源:tx_news_domain_model_news.php

示例11:

            --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,
            assets,
            --palette--;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:palette.alignment;mediablock,
            --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
            --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.extended,
            rowDescription', 'columnsOverrides' => ['bodytext' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]']]]);
/***************
 * Add Content Element: Image
 */
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['image'] = 'content-image';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.3', 'image', 'content-image'], 'textmedia', 'after');
if (!is_array($GLOBALS['TCA']['tt_content']['types']['image'])) {
    $GLOBALS['TCA']['tt_content']['types']['image'] = [];
}
$GLOBALS['TCA']['tt_content']['types']['image'] = array_replace_recursive($GLOBALS['TCA']['tt_content']['types']['image'], ['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.images,
            image,
            --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
            --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,
            --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imageblock;imageblock,
            --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,
开发者ID:pekue,项目名称:bootstrap_package,代码行数:31,代码来源:tt_content.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$ll = 'LLL:EXT:t3events_reservation/Resources/Private/Language/locallang_db.xlf:';
$tmpColumns = ['reservation' => ['label' => $ll . 'tx_t3events_domain_model_person.reservation', 'config' => ['type' => 'select', 'foreign_table' => 'tx_t3eventsreservation_domain_model_reservation', 'maxitems' => 1, 'minitems' => 1, 'readOnly' => 1]], 'birthplace' => ['label' => $ll . 'tx_t3events_domain_model_person.birthplace', 'config' => ['type' => 'input']], 'role' => ['label' => $ll . 'tx_t3events_domain_model_person.role', 'config' => ['type' => 'input']], 'company_name' => ['label' => $ll . 'tx_t3events_domain_model_person.company_name', 'config' => ['type' => 'input']], 'vat_id' => ['exclude' => 1, 'label' => $ll . 'tx_t3events_domain_model_person.vat_id', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'accounting_office' => ['exclude' => 1, 'label' => $ll . 'tx_t3events_domain_model_person.accounting_office', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']]];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tx_t3events_domain_model_person', 'tx_extbase_type', [$ll . 'tx_t3events_domain_model_person.type.participant', \CPSIT\T3eventsReservation\Domain\Model\Person::PERSON_TYPE_PARTICIPANT]);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tx_t3events_domain_model_person', 'tx_extbase_type', [$ll . 'tx_t3events_domain_model_person.type.billingAddress', \CPSIT\T3eventsReservation\Domain\Model\BillingAddress::PERSON_TYPE_BILLING_ADDRESS]);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_t3events_domain_model_person', $tmpColumns, TRUE);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_person', 'reservation,birthplace,company_name,role', '', 'after:email');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_person', 'vat_id', '', 'after:company_name');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_person', 'accounting_office', '', 'after:vat_id');
开发者ID:dwenzel,项目名称:t3events_reservation,代码行数:13,代码来源:tx_t3events_domain_model_person.php

示例13: defined

<?php

defined('TYPO3_MODE') or die;
call_user_func(function () {
    $languageFilePrefix = 'LLL:EXT:fluid_styled_content/Resources/Private/Language/Database.xlf:';
    $customLanguageFilePrefix = 'LLL:EXT:fluid_styled_slider/Resources/Private/Language/locallang_be.xlf:';
    $frontendLanguageFilePrefix = 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:';
    // Add the CType "fs_slider"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', ['LLL:EXT:fluid_styled_slider/Resources/Private/Language/locallang_be.xlf:wizard.title', 'fs_slider', 'content-image'], 'textmedia', 'after');
    $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['fs_slider'] = $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['textmedia'];
    // Define what fields to display
    $GLOBALS['TCA']['tt_content']['types']['fs_slider'] = ['showitem' => '
                --palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
                --palette--;' . $languageFilePrefix . 'tt_content.palette.mediaAdjustments;mediaAdjustments,
                pi_flexform,
            --div--;' . $customLanguageFilePrefix . 'tca.tab.sliderElements,
                 assets
        ', 'columnsOverrides' => ['media' => ['label' => $languageFilePrefix . 'tt_content.media_references', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media', ['appearance' => ['createNewRelationLinkTitle' => $languageFilePrefix . 'tt_content.media_references.addFileReference'], 'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types']], $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'])]]];
});
开发者ID:ervaude,项目名称:fluid_styled_slider,代码行数:19,代码来源:tt_content.php

示例14: array

		pi_flexform;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:settings,
	--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.extended
	--div--;Gridelements,
	    tx_gridelements_container,
        tx_gridelements_columns,
    ');
$GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][',slickcarousel'] = 'FILE:EXT:slickcarousel/Configuration/FlexForms/slick-responsive.xml';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['slickcarousel'] = 'slickicon';
// Slick Expert - END
// Slick Text - START
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', ['LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:slickcarouselbging.title', 'slickcarouselbgimg', 'EXT:slickcarousel/slick.svg'], '--div--', 'after');
$GLOBALS['TCA']['tt_content']['types']['slickcarouselbgimg'] = array('showitem' => '
        --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
		header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header.ALT.div_formlabel,
		slickheight;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:slickcarouselbging.height,
		tx_slickcarouselbgimg;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:slickcarouselbging.title,
		--div--;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:settings,
		pi_flexform;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:settings,
	--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.extended
	--div--;Gridelements,
	    tx_gridelements_container,
开发者ID:misterboe,项目名称:slickcarousel,代码行数:31,代码来源:tt_content.php

示例15: defined

<?php

defined('TYPO3_MODE') or die;
/**
 * Registering CType "media" and "multimedia"
 */
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['multimedia'] = 'mimetypes-x-content-multimedia';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['media'] = 'mimetypes-x-content-multimedia';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['multimedia'] = 'tt_content_mm.gif';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['media'] = 'tt_content_mm.gif';
// Register new CType in item list just before "menu"
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:cms/locallang_ttc.xlf:CType.I.7', 'multimedia', 'i/tt_content_mm.gif'), 'menu', 'before');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array('LLL:EXT:cms/locallang_ttc.xlf:CType.I.18', 'media', 'i/tt_content_mm.gif'), 'menu', 'before');
// Add new field
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', array('multimedia' => array('label' => 'LLL:EXT:cms/locallang_ttc.xlf:multimedia', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => 'txt,html,htm,class,swf,swa,dcr,wav,avi,au,mov,asf,mpg,wmv,mp3,mp4,m4v', 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'], 'uploadfolder' => 'uploads/media', 'size' => '2', 'maxitems' => '1', 'minitems' => '0'))));
// add type definition and palette
$GLOBALS['TCA']['tt_content']['types']['multimedia'] = array('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.media,
			--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.multimediafiles;multimediafiles,
		--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.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.extended');
$GLOBALS['TCA']['tt_content']['types']['media'] = array('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.media,
			pi_flexform,
		--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
开发者ID:adrolli,项目名称:TYPO3.CMS,代码行数:31,代码来源:tt_content.php


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