本文整理汇总了PHP中t3lib_extMgm::addFieldsToPalette方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::addFieldsToPalette方法的具体用法?PHP t3lib_extMgm::addFieldsToPalette怎么用?PHP t3lib_extMgm::addFieldsToPalette使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::addFieldsToPalette方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
t3lib_extMgm::addToAllTCAtypes('pages','tx_templavoila_ds;;;;1-1-1,tx_templavoila_to,tx_templavoila_next_ds;;;;1-1-1,tx_templavoila_next_to,tx_templavoila_flex;;;;1-1-1');
}
if ($TCA['pages']['ctrl']['requestUpdate'] != '') {
$TCA['pages']['ctrl']['requestUpdate'] .= ',';
}
$TCA['pages']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds,tx_templavoila_next_ds';
} else {
if(tx_templavoila_div::convertVersionNumberToInteger(TYPO3_version) >= 4005000) {
if (!$_EXTCONF['enable.']['oldPageModule']) {
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_to;;;;1-1-1', '', 'replace:backend_layout');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_next_to;;;;1-1-1', '', 'replace:backend_layout_next_level');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_flex;;;;1-1-1', '', 'after:title');
} else {
t3lib_extMgm::addFieldsToPalette('pages', 'layout', '--linebreak--, tx_templavoila_to;;;;1-1-1, tx_templavoila_next_to;;;;1-1-1', 'after:backend_layout_next_level');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_flex;;;;1-1-1', '', 'after:title');
}
} else {
t3lib_extMgm::addToAllTCAtypes('pages','tx_templavoila_to;;;;1-1-1,tx_templavoila_next_to;;;;1-1-1,tx_templavoila_flex;;;;1-1-1');
}
unset($TCA['pages']['columns']['tx_templavoila_to']['displayCond']);
unset($TCA['pages']['columns']['tx_templavoila_next_to']['displayCond']);
}
// Configure the referencing wizard to be used in the web_func module:
if (TYPO3_MODE=='BE') {
t3lib_extMgm::insertModuleFunction(
'web_func',
'tx_templavoila_referenceElementsWizard',
示例2: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
// t3lib_extMgm::addModule('tools','txrealurlM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
// Add Web>Info module:
t3lib_extMgm::insertModuleFunction('web_info', 'tx_realurl_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_realurl_modfunc1.php', 'LLL:EXT:realurl/locallang_db.xml:moduleFunction.tx_realurl_modfunc1', 'function', 'online');
}
if (version_compare(TYPO3_branch, '6.1', '<')) {
t3lib_div::loadTCA('pages');
}
$TCA['pages']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'displayCond' => 'FIELD:tx_realurl_exclude:!=:1', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')), 'tx_realurl_pathoverride' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_path_override', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_exclude' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_exclude', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_nocache' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_nocache', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))));
$TCA['pages']['ctrl']['requestUpdate'] .= ',tx_realurl_exclude';
$TCA['pages']['palettes']['137'] = array('showitem' => 'tx_realurl_pathoverride');
if (t3lib_div::compat_version('4.3')) {
t3lib_extMgm::addFieldsToPalette('pages', '3', 'tx_realurl_nocache', 'after:cache_timeout');
}
if (t3lib_div::compat_version('4.2')) {
// For 4.2 or new add fields to advanced page only
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1', 'after:nav_title');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '4,199,254', 'after:title');
} else {
// Put it for standard page
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '2', 'after:nav_title');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1,5,4,199,254', 'after:title');
}
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:realurl/locallang_csh.xml');
$TCA['pages_language_overlay']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')));
t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_realurl_pathsegment', '', 'after:nav_title');
示例3: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
$columnArray = array('pages' => array('tx_tablecleaner_exclude' => array('exclude' => TRUE, 'label' => 'LLL:EXT:tablecleaner/Resources/Private/Language/locallang_db.xml:pages.tx_tablecleaner_exclude', 'config' => array('type' => 'check', 'default' => 0, 'items' => array(array('LLL:EXT:lang/locallang_core.xml:labels.enabled', 1)))), 'tx_tablecleaner_exclude_branch' => array('exclude' => TRUE, 'label' => 'LLL:EXT:tablecleaner/Resources/Private/Language/locallang_db.xml:pages.tx_tablecleaner_exclude_branch', 'config' => array('type' => 'check', 'default' => 0, 'items' => array(array('LLL:EXT:lang/locallang_core.xml:labels.enabled', 1))))));
t3lib_extMgm::addTCAcolumns('pages', $columnArray['pages']);
if (isset($GLOBALS['TCA']['pages']['palettes']['visibility'])) {
t3lib_extMgm::addFieldsToPalette('pages', 'visibility', 'tx_tablecleaner_exclude', 'after:nav_hide');
t3lib_extMgm::addFieldsToPalette('pages', 'visibility', 'tx_tablecleaner_exclude_branch', 'after:tx_tablecleaner_exclude');
} else {
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_tablecleaner_exclude', '', 'after:nav_hide');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_tablecleaner_exclude_branch', '', 'after:tx_tablecleaner_exclude');
}
t3lib_extMgm::addLLrefForTCAdescr('tablecleaner', 'EXT:tablecleaner/Resources/Private/Language/ContextSensitiveHelp.xml');
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:tablecleaner/Resources/Private/Language/ContextSensitiveHelpPages.xml');
/**
* Register the Backend Module
*/
Tx_Extbase_Utility_Extension::registerModule('tablecleaner', 'web', 'Tx_Tablecleaner_InfoModule', 'after:info', array('InfoModule' => 'index'), array('access' => 'user,group', 'icon' => 'EXT:tablecleaner/ext_icon.gif', 'labels' => 'LLL:EXT:tablecleaner/Resources/Private/Language/locallang.xml'));
}
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tempColumns = array('tx_ajaxlogin_forgotHash' => array('label' => 'LLL:EXT:ajaxlogin/Resources/Private/Language/locallang_db.xml:fe_users.tx_ajaxlogin_forgotHash', 'displayCond' => 'HIDE_FOR_NON_ADMINS', 'exclude' => true, 'config' => array('type' => 'input', 'size' => 20, 'max' => 32, 'eval' => 'md5')), 'tx_ajaxlogin_verificationHash' => array('label' => 'LLL:EXT:ajaxlogin/Resources/Private/Language/locallang_db.xml:fe_users.tx_ajaxlogin_verificationHash', 'displayCond' => 'HIDE_FOR_NON_ADMINS', 'exclude' => true, 'config' => array('type' => 'input', 'size' => 32, 'readOnly' => true)), 'tx_ajaxlogin_forgotHashValid' => array('label' => 'LLL:EXT:ajaxlogin/Resources/Private/Language/locallang_db.xml:fe_users.tx_ajaxlogin_forgotHashValid', 'displayCond' => 'HIDE_FOR_NON_ADMINS', 'exclude' => true, 'config' => array('type' => 'input', 'size' => '8', 'eval' => 'datetime')));
t3lib_div::loadTCA("fe_users");
t3lib_extMgm::addTCAcolumns("fe_users", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_users', '--div--;Ajaxlogin,tx_ajaxlogin_verificationHash,tx_ajaxlogin_forgotHash,tx_ajaxlogin_forgotHashValid');
$pagesTempColumns = array('tx_ajaxlogin_sectionreload' => array('label' => 'After signing in or out', 'config' => array('type' => 'check', 'items' => array(array('Reload the pages in this section', 1)))));
include_once t3lib_extMgm::extPath($_EXTKEY) . 'Classes/Tca/FlexForm.php';
$GLOBALS['TCA']['fe_users']['columns']['country']['config'] = array('type' => 'select', 'itemsProcFunc' => 'Tx_Ajaxlogin_Tca_FlexForm->country', 'foreign_table' => 'static_countries', 'foreign_table_where' => 'ORDER BY static_countries.cn_short_en', 'foreign_table_uid_field' => 'cn_short_en', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'allowNonIdValues' => true);
t3lib_div::loadTCA("pages");
t3lib_extMgm::addTCAcolumns("pages", $pagesTempColumns, 1);
t3lib_extMgm::addFieldsToPalette('pages', 'miscellaneous', 'tx_ajaxlogin_sectionreload');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Profile', 'Ajaxlogin');
$extensionName = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY));
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$extensionName . '_profile'] = 'pages,recursive,layout,select_key';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extensionName . '_profile'] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($extensionName . '_profile', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Profile.xml');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'AJAX login');
示例5: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tempColumns = array('tx_ddgooglesitemap_lastmod' => array('exclude' => 1, 'label' => '', 'config' => array('type' => 'passthrough')), 'tx_ddgooglesitemap_priority' => array('exclude' => 1, 'label' => 'LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority', 'displayCond' => 'FIELD:no_search:=:0', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.0', 0), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.1', 1), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.2', 2), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.3', 3), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.4', 4), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.5', 5), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.6', 6), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.7', 7), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.8', 8), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.8', 9), array('LLL:EXT:dd_googlesitemap/locallang.xml:pages.tx_ddgooglesitemap_priority.10', 10)))));
t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 0);
t3lib_extMgm::addFieldsToPalette('pages', 'miscellaneous', 'tx_ddgooglesitemap_priority');
unset($tempColumn);
示例6: canAddFieldsToPaletteAfterNotExistingOnes
/**
* Tests whether fields can be added to a palette after a not existing elements.
* @test
* @see t3lib_extMgm::addFieldsToPalette()
*/
public function canAddFieldsToPaletteAfterNotExistingOnes()
{
$table = uniqid('tx_coretest_table');
$GLOBALS['TCA'] = $this->generateTCAForTable($table);
t3lib_extMgm::addFieldsToPalette($table, 'paletteA', 'newA, newA, newB, fieldX', 'after:' . uniqid('notExisting'));
$this->assertEquals('fieldX, fieldY, newA, newB', $GLOBALS['TCA'][$table]['palettes']['paletteA']['showitem']);
}