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


PHP SpriteManager::addTcaTypeIcon方法代码示例

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


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

示例1: addTcaTypeIconWithTableAndTypeAndValueSetsArrayValue

 /**
  * @test
  */
 public function addTcaTypeIconWithTableAndTypeAndValueSetsArrayValue()
 {
     $imagePath = 'path/to/my-icon.png';
     $table = 'tt_content';
     $type = 'contains-news';
     \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon($table, $type, $imagePath);
     $this->assertEquals($imagePath, $GLOBALS['TBE_STYLES']['spritemanager']['singleIcons']['tcarecords-' . $table . '-' . $type]);
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:11,代码来源:SpriteManagerTest.php

示例2: addDoktype

 public static function addDoktype($extKey, $doktype, $iconName)
 {
     $customPageIcon = static::getCustomPageIcon($extKey, $iconName);
     // Add the new doktype to the list of page types
     $GLOBALS['PAGES_TYPES'][$doktype] = array('type' => 'web', 'icon' => $customPageIcon, 'allowedTables' => '*');
     // Add the icon for the new doktype
     \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', $doktype, $customPageIcon);
     // Add the new doktype to the list of types available from the new page menu at the top of the page tree
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $doktype . ')');
 }
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:10,代码来源:CustomPageUtility.php

示例3: addTcaTypeIcon

 /**
  * Add the given icon to the TCA table type
  *
  * @param string $table
  * @param string $type
  * @param string $icon
  */
 public static function addTcaTypeIcon($table, $type, $icon)
 {
     if (GeneralUtility::compat_version('7.0')) {
         $fullIconPath = substr(PathUtility::getAbsoluteWebPath($icon), 1);
         if (StringUtility::endsWith(strtolower($fullIconPath), 'svg')) {
             $iconProviderClass = 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\SvgIconProvider';
         } else {
             $iconProviderClass = 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\BitmapIconProvider';
         }
         /** @var IconRegistry $iconRegistry */
         $iconRegistry = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Imaging\\IconRegistry');
         $iconIdentifier = 'tcarecords-' . $table . '-' . $type;
         $iconRegistry->registerIcon($iconIdentifier, $iconProviderClass, ['source' => $fullIconPath]);
         $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'][$type] = $iconIdentifier;
     } else {
         $fullIconPath = str_replace('../typo3/', '', $icon);
         SpriteManager::addTcaTypeIcon('tt_content', $type, $fullIconPath);
     }
 }
开发者ID:c2po,项目名称:autoloader,代码行数:26,代码来源:IconUtility.php

示例4: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Identity-Plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Identity', 'LLL:EXT:px_hybrid_auth/Resources/Private/Language/locallang_db.xlf:plugins.identity.name');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'HybridAuth');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('tt_content', 'px_hybrid_auth_login', '../typo3conf/ext/px_hybrid_auth/Resources/Public/Icons/px_hybrid_auth_login_form_no_bg.gif');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:px_hybrid_auth/Configuration/TypoScript/PageTSConfig.txt">');
开发者ID:kalypso63,项目名称:px_hybrid_auth,代码行数:10,代码来源:ext_tables.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid: Website Template');
//# Add Constants and setup TSConfig
if ('BE' === TYPO3_MODE) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluxtemplate/Configuration/TypoScript/constants.txt">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluxtemplate/Configuration/TypoScript/setup.txt">');
}
//# Add page TSConfig
$pageTsConfig = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TsConfig/Page/config.ts');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig($pageTsConfig);
# Add user TSConfig
$userTsConfig = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TsConfig/User/config.ts');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig($userTsConfig);
\FluidTYPO3\Flux\Core::registerProviderExtensionKey($_EXTKEY, 'Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey($_EXTKEY, 'Page');
// New icons for the BE
if (TYPO3_MODE == 'BE') {
    $icons = array('category', 'comment', 'storage', 'tesseract', 'people', 'mail', 'form');
    foreach ($icons as $icon) {
        \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-' . $icon, \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Backend/Icons/' . $icon . '.png');
        $TCA['pages']['columns']['module']['config']['items'][] = array(ucfirst($icon), $icon, \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Backend/Icons/' . $icon . '.png');
    }
}
开发者ID:vijayrami,项目名称:fluidfluxtemplate,代码行数:27,代码来源:ext_tables.php

示例6: array

        			Register BE-Module for Administration
        		=========================================================================== */
        if ($configuration->getShowAdministrationModule()) {
            \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($packageKey, 'moox', 'tx_mooxnews_m2', '', array('Administration' => 'index,newNews,deleteNews,cloneNews,deleteTranslation,toggleNewsState,toggleTranslationState,newCategory,newTag,newTarget,newsPidListing,moveToFolder,multiple'), array('access' => 'user,group', 'icon' => 'EXT:' . $packageKey . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $packageKey . '/Resources/Private/Language/locallang_modadministration.xlf'));
        }
        /* ===========================================================================
        			Ajax call to save tags
        		=========================================================================== */
        $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['News::createTag'] = 'typo3conf/ext/moox_news/Classes/Hooks/SuggestReceiverCall.php:Tx_MooxNews_Hooks_SuggestReceiverCall->createTag';
        $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['News::createTarget'] = 'typo3conf/ext/moox_news/Classes/Hooks/SuggestReceiverCall.php:Tx_MooxNews_Hooks_SuggestReceiverCall->createTarget';
    }
    \FluidTYPO3\Flux\Core::registerProviderExtensionKey('DCNGmbH.MooxNews', 'Page');
    /* ===========================================================================
    		Default configuration
    	=========================================================================== */
    $GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByCategory'] = 'uid,title,tstamp,sorting';
    $GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByNews'] = 'tstamp,datetime,crdate,title' . ($configuration->getManualSorting() ? ',sorting' : '');
    $GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByTag'] = 'tstamp,crdate,title';
    $GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['switchableControllerActions']['list'] = $configuration->getRemoveListActionFromFlexforms();
};
$boot($_EXTKEY);
unset($boot);
/***************
* Icon in page tree
*/
$TCA['pages']['columns']['module']['config']['items'][] = array('MOOX-News', 'mxnews', 'EXT:moox_news/ext_icon.gif');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-mxnews', '../typo3conf/ext/moox_news/ext_icon.gif');
/***************
 * ###DCN### Added custom stylesheet to modify tca form elements (Dominic)
 */
//$TBE_STYLES['styleSheetFile_post'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Css/backend_overwrite.css';
开发者ID:preinboth,项目名称:moox_news,代码行数:31,代码来源:ext_tables.php

示例7: addToList

	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
	--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
	--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.metatags;metatags,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,
	--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.caching;caching,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.module;module,
	--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
	--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,
	--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', \FluidTYPO3\Fluidpages\Controller\PageControllerInterface::DOKTYPE_RAW, $doktypeIcon);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . \FluidTYPO3\Fluidpages\Controller\PageControllerInterface::DOKTYPE_RAW . ')');
$doktypes = '0,1,4';
$additionalDoktypes = trim($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['doktypes'], ',');
if (FALSE === empty($additionalDoktypes)) {
    $doktypes .= ',' . $additionalDoktypes;
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--div--;LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_layoutselect,tx_fed_page_controller_action,tx_fed_page_controller_action_sub', $doktypes);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--div--;LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_configuration,tx_fed_page_flexform,tx_fed_page_flexform_sub', $doktypes);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', array('tx_fluidpages_templatefile' => array('exclude' => 1, 'label' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fluidpages_templatefile', 'config' => array('type' => 'input', 'eval' => 'trim', 'placeholder' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fluidpages_templatefile.placeholder', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard&act=file', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')))), 'tx_fluidpages_layout' => array('exclude' => 1, 'label' => 'LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fluidpages_layout', 'displayCond' => 'FIELD:tx_fluidpages_templatefile:!=:', 'config' => array('type' => 'select', 'itemsProcFunc' => 'FluidTYPO3\\Fluidpages\\Backend\\TemplateFileLayoutSelector->addLayoutOptions', 'arguments' => array('referring_field' => 'tx_fluidpages_templatefile')))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_fluidpages_templatefile, tx_fluidpages_layout', \FluidTYPO3\Fluidpages\Controller\PageControllerInterface::DOKTYPE_RAW, 'before:title');
$GLOBALS['TCA']['pages']['ctrl']['requestUpdate'] .= ',tx_fluidpages_templatefile';
unset($doktypes, $additionalDoktypes, $doktypeIcon);
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:31,代码来源:ext_tables.php

示例8: strtolower

$pluginSignature = strtolower($extensionName) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key,pages';
/**
 * Register static Typoscript Template
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/', '[yag] Yet Another Gallery');
/**
 * Register flexform
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Flexform.xml');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
/**
 * TCA Configuration
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_album', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_album.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_album');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_gallery', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_gallery.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_gallery');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_item', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_item.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_item');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_resolutionfilecache', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_resolutionfilecache.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_resolutionfilecache');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_itemmeta', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_itemmeta.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_itemmeta');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_yag_domain_model_tag', 'EXT:yag/Resources/Private/Language/locallang_csh_tx_yag_domain_model_tag.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_yag_domain_model_tag');
// Register yag for 'contains plugin' in sysfolders
$TCA['pages']['columns']['module']['config']['items'][] = array('LLL:EXT:yag/Resources/Private/Language/locallang.xlf:tx_yag_general.yag', 'yag', 'i/ext_icon.png');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-yag', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('yag') . 'ext_icon.gif');
开发者ID:kabarakh,项目名称:yag,代码行数:30,代码来源:ext_tables.php

示例9: die

 * @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');
开发者ID:boristimp,项目名称:formhandler,代码行数:30,代码来源:ext_tables.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * additional page type: page container; doktype 21.
 */
$newPageType = array('LLL:EXT:go_tsconfig/Resources/Private/Language/locallang_db.xml:pages.doktypes.pagecontainer', '21', 'EXT:go_tsconfig/Resources/Public/Icons/doktype_icon_pagecontainer.png');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('pages', 'doktype', $newPageType, '254', 'before');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('pages_language_overlay', 'doktype', $newPageType, '254', 'before');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', '21', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/doktype_icon_pagecontainer.png');
/**
 * new columns for page and pages_language_overlay
 */
$tempColumns = array('tx_gotsconfig_logo' => array('exclude' => 1, 'label' => 'LLL:EXT:go_tsconfig/Resources/Private/Language/locallang_db.xml:pages.tx_gotsconfig_logo', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('tx_gotsconfig_logo', 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;imageoverlayPalette,--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])));
$tempColumns1 = array('image' => array('exclude' => 1, 'label' => 'LLL:EXT:go_tsconfig/Resources/Private/Language/locallang_db.xml:pages.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('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;imageoverlayPalette,--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns1, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $tempColumns, 1);
unset($tempColumns);
unset($tempColumns1);
/**
 * define page types for fields to add
 */
$pageTypeArray = array(\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT, \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK, \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT, \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION, \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT, '21');
/**
 * add logo field
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_gotsconfig_logo', implode(',', $pageTypeArray), 'before:--palette--;;media');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', 'tx_gotsconfig_logo', implode(',', $pageTypeArray), 'before:--palette--;;media');
开发者ID:maab127,项目名称:default7,代码行数:31,代码来源:ext_tables.php

示例11:

    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', '', '', PATH_TXCOMMERCE . 'Classes/Module/Main/');
    // add category module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', 'category', '', PATH_TXCOMMERCE . 'Classes/Module/Category/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Tx_Commerce_ViewHelpers_Navigation_CategoryViewHelper::ajaxExpandCollapseWithoutProduct', 'Tx_Commerce_ViewHelpers_Navigation_CategoryViewHelper->ajaxExpandCollapseWithoutProduct');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Tx_Commerce_ViewHelpers_Navigation_CategoryViewHelper::ajaxExpandCollapse', 'Tx_Commerce_ViewHelpers_Navigation_CategoryViewHelper->ajaxExpandCollapse');
    // Access Module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', 'permission', '', PATH_TXCOMMERCE . 'Classes/Module/Permission/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Tx_Commerce_Controller_PermissionAjaxController::dispatch', 'Tx_Commerce_Controller_PermissionAjaxController->dispatch');
    // Orders module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', 'orders', '', PATH_TXCOMMERCE . 'Classes/Module/Orders/');
    // Statistic Module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', 'statistic', '', PATH_TXCOMMERCE . 'Classes/Module/Statistic/');
    // Systemdata module
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txcommerceM1', 'systemdata', '', PATH_TXCOMMERCE . 'Classes/Module/Systemdata/');
    // commerce icon
    \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-commerce', PATH_TXCOMMERCE_REL . 'Resources/Public/Icons/Table/commerce_folder.gif');
    // Add default User TS config
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
		options.saveDocNew {
			tx_commerce_products = 1
			tx_commerce_article_types = 1
			tx_commerce_attributes = 1
			tx_commerce_attribute_values = 1
			tx_commerce_categories = 1
			tx_commerce_trackingcodes = 1
			tx_commerce_moveordermails = 1
		}
	');
    // Add default page TS config
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
		# CONFIGURATION of RTE in table "tx_commerce_products", field "description"
开发者ID:AndreasA,项目名称:commerce,代码行数:31,代码来源:ext_tables.php

示例12: strtolower

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Address.xml');
/*
 * Default TypoScript
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Modern Address');
/*
 * Wizard Plugin
 */
if (TYPO3_MODE == 'BE') {
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_' . strtolower($extensionName) . '_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Resources/Private/Php/class.tx_' . strtolower($extensionName) . '_wizicon.php';
}
/*
 * Add System Categories
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable($_EXTKEY, 'tx_hwtaddress_domain_model_address', $fieldName = 'categories', $options = array());
/*
 * Extend tca pages
 */
$tempColumns = array('tx_hwtaddress_related_address' => array('exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xlf:pages.tx_hwtaddress_related_address', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_hwtaddress_domain_model_address', 'foreign_table' => 'tx_hwtaddress_domain_model_address', 'size' => 5, 'minitems' => 0, 'maxitems' => 100, 'MM' => 'tx_hwtaddress_domain_model_pages_address_mm', 'wizards' => array('suggest' => array('type' => 'suggest')))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_hwtaddress_related_address;;;;1-1-1, tx_hwtaddress_related_address_from');
/*
 * Add folder contains type
 */
if (TYPO3_MODE == 'BE') {
    $folderName = 'hwtaddr';
    $folderPath = '../typo3conf/ext/' . $_EXTKEY . '/Resources/Public/Icons/folder-hwtaddr.gif';
    unset($GLOBALS['ICON_TYPES'][$folderName]);
    \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-' . $folderName, $folderPath);
    $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = array(0 => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_be.xlf:folder', 1 => $folderName, 2 => $folderPath);
}
开发者ID:hwt3,项目名称:HwtTypo3HwtAddress,代码行数:31,代码来源:ext_tables.php

示例13: unset

     /* @var $iconRegistry \TYPO3\CMS\Core\Imaging\IconRegistry */
     $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
     $iconRegistry->registerIcon('extensions-t3extblog-post', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/page.png']);
     $iconRegistry->registerIcon('extensions-t3extblog-category', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/category.png']);
     $iconRegistry->registerIcon('extensions-t3extblog-comment', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/comment.png']);
     $iconRegistry->registerIcon('extensions-t3extblog-subscriber', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/subscriber.png']);
     $iconRegistry->registerIcon('extensions-t3extblog-trackback', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/trackback.png']);
     // Add BE page icon
     $iconRegistry->registerIcon('tcarecords-pages-contains-t3blog', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:t3extblog/Resources/Public/Icons/folder.png']);
     $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = $pageModuleConfig;
     $GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-t3blog'] = 'tcarecords-pages-contains-t3blog';
 } else {
     \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('post' => $extensionPath . 'Resources/Public/Icons/page.png', 'category' => $extensionPath . 'Resources/Public/Icons/category.png', 'comment' => $extensionPath . 'Resources/Public/Icons/comment.png', 'subscriber' => $extensionPath . 'Resources/Public/Icons/subscriber.png', 'trackback' => $extensionPath . 'Resources/Public/Icons/trackback.png'), 't3extblog');
     // Add BE page icon
     unset($GLOBALS['ICON_TYPES']['t3blog']);
     \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-t3blog', '../typo3conf/ext/t3extblog/Resources/Public/Icons/folder.png');
     $addNewsToModuleSelection = TRUE;
     foreach ($GLOBALS['TCA']['pages']['columns']['module']['config']['items'] as $item) {
         if ($item[1] === 't3blog') {
             $addNewsToModuleSelection = FALSE;
             continue;
         }
     }
     if ($addNewsToModuleSelection) {
         $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = $pageModuleConfig;
     }
 }
 // @todo Remove this when 6.2 is no longer relevant
 $icon = '/Resources/Public/Icons/module.png';
 if (version_compare(TYPO3_branch, '7.0', '<')) {
     // Use a smaller icon for TYPO3 6.2
开发者ID:dextar1,项目名称:t3extblog,代码行数:31,代码来源:ext_tables.php

示例14: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/***************
 * Default TypoScript
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Kiruna Sleddog Tours');
// add a new doktype for the tours
$customPageDoktype = 111;
$customPageIcon = '../typo3conf/ext/kiruna_sleddog_tours/Resources/Public/img/favicon/favicon-16x16.png';
// Add the new doktype to the list of page types
$GLOBALS['PAGES_TYPES'][$customPageDoktype] = array('type' => 'sys', 'icon' => $customPageIcon, 'allowedTables' => '*');
// Add the new doktype to the page type selector
$GLOBALS['TCA']['pages']['columns']['doktype']['config']['items'][] = array('LLL:EXT:kiruna_sleddog_tours/Resources/Private/Language/locallang_be.xlf:tour_page_type', $customPageDoktype, $customPageIcon);
// Also add the new doktype to the page language overlays type selector (so that translations can inherit the same type)
$GLOBALS['TCA']['pages_language_overlay']['columns']['doktype']['config']['items'][] = array('LLL:EXT:kiruna_sleddog_tours/Resources/Private/Language/locallang_be.xlf:tour_page_type', $customPageDoktype, $customPageIcon);
// Add the icon for the new doktype
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', $customPageDoktype, $customPageIcon);
// Add the new doktype to the list of types available from the new page menu at the top of the page tree
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $customPageDoktype . ')');
开发者ID:rodacker,项目名称:typo3-sleddog,代码行数:22,代码来源:ext_tables.php

示例15: die

<?php

/**
 * General ext_tables file and also an example for your own extension
 *
 * @category Extension
 * @package  Calendarize
 * @author   Tim Lochmüller
 */
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'calendarize', \HDNET\Calendarize\Register::getDefaultAutoloader());
if (!(bool) \HDNET\Calendarize\Utility\ConfigurationUtility::get('disableDefaultEvent')) {
    \HDNET\Calendarize\Register::extTables(\HDNET\Calendarize\Register::getDefaultCalendarizeConfiguration());
    \TYPO3\CMS\Core\Category\CategoryRegistry::getInstance()->add('calendarize', 'tx_calendarize_domain_model_event');
}
$pluginName = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('pluginName', 'calendarize');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('calendarize', 'Calendar', $pluginName);
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.0.0')) {
    $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['calendarize_calendar'] .= ',categories';
}
// module icon
$relIconPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('calendarize') . 'ext_icon.png';
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-calendar', $relIconPath);
开发者ID:sirdiego,项目名称:calendarize,代码行数:25,代码来源:ext_tables.php


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