本文整理汇总了PHP中t3lib_extMgm::addTCAcolumns方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::addTCAcolumns方法的具体用法?PHP t3lib_extMgm::addTCAcolumns怎么用?PHP t3lib_extMgm::addTCAcolumns使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::addTCAcolumns方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tempTablesDef = array('static_countries' => array('cn_short_en' => 'cn_short_fr'), 'static_country_zones' => array('zn_name_en' => 'zn_name_fr'), 'static_currencies' => array('cu_name_en' => 'cu_name_fr', 'cu_sub_name_en' => 'cu_sub_name_fr'), 'static_languages' => array('lg_name_en' => 'lg_name_fr'), 'static_territories' => array('tr_name_en' => 'tr_name_fr'));
foreach ($tempTablesDef as $tempTable => $tempFieldDef) {
t3lib_div::loadTCA($tempTable);
foreach ($tempFieldDef as $tempSourceField => $tempDestField) {
$tempColumns = array();
$tempColumns[$tempDestField] = $TCA[$tempTable]['columns'][$tempSourceField];
$tempColumns[$tempDestField]['label'] = 'LLL:EXT:' . $_EXTKEY . '/locallang_db.xml:' . $tempTable . '_item.' . $tempDestField;
t3lib_extMgm::addTCAcolumns($tempTable, $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes($tempTable, $tempDestField, '', 'after:' . $tempSourceField);
}
}
示例2: array
t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_odsosm_lon, tx_odsosm_lat', '', 'after:country');
}
t3lib_div::loadTCA('tt_address');
t3lib_extMgm::addTCAcolumns('tt_address', $tempColumns, 1);
if (t3lib_div::compat_version('4.3')) {
t3lib_extMgm::addToAllTCAtypes('tt_address', 'tx_odsosm_lon', '', 'after:city');
t3lib_extMgm::addFieldsToAllPalettesOfField('tt_address', 'tx_odsosm_lon', 'tx_odsosm_lat');
} else {
t3lib_extMgm::addToAllTCAtypes('tt_address', 'tx_odsosm_lon, tx_odsosm_lat', '', 'after:city');
}
$tempColumns = array('tx_odsosm_marker' => array('exclude' => 1, 'label' => 'LLL:EXT:ods_osm/locallang_db.xml:tt_address_group.tx_odsosm_marker', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_odsosm_marker', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)));
t3lib_div::loadTCA('fe_groups');
t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker;;;;1-1-1');
t3lib_div::loadTCA('tt_address_group');
t3lib_extMgm::addTCAcolumns('tt_address_group', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tt_address_group', 'tx_odsosm_marker;;;;1-1-1');
/* --------------------------------------------------
New tables
-------------------------------------------------- */
$TCA['tx_odsosm_geocache'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_geocache', 'label' => 'zip', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => '', 'default_sortby' => 'ORDER BY zip', 'delete' => 'deleted', 'rootLevel' => 1, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_geocache.png'));
$TCA['tx_odsosm_layer'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_layer', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'delete' => 'deleted', 'rootLevel' => 1, 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_layer.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_marker');
$TCA['tx_odsosm_marker'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_marker', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_marker.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_track');
t3lib_extMgm::addToInsertRecords('tx_odsosm_track');
$TCA['tx_odsosm_track'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_track', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_track.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_vector');
t3lib_extMgm::addToInsertRecords('tx_odsosm_vector');
$TCA['tx_odsosm_vector'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_vector', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_vector.png'));
/* --------------------------------------------------
示例3: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
// register the cache in BE so it will be cleared with "clear all caches"
try {
t3lib_cache::initializeCachingFramework();
$GLOBALS['typo3CacheFactory']->create('tx_extbase_cache_reflection', $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['frontend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['backend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['options']);
} catch (t3lib_cache_exception_NoSuchCache $exception) {
}
$TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Dispatcher';
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['extbase'][] = 'tx_extbase_utility_extbaserequirementscheck';
t3lib_div::loadTCA('fe_users');
if (!isset($TCA['fe_groups']['ctrl']['type'])) {
$tempColumns = array('tx_extbase_type' => array('exclude' => 1, 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.0', '0'), array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser', 'Tx_Extbase_Domain_Model_FrontendUser')), 'size' => 1, 'maxitems' => 1, 'default' => '0')));
t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_extbase_type');
$TCA['fe_users']['ctrl']['type'] = 'tx_extbase_type';
}
$TCA['fe_users']['types']['Tx_Extbase_Domain_Model_FrontendUser'] = $TCA['fe_users']['types']['0'];
t3lib_div::loadTCA('fe_groups');
if (!isset($TCA['fe_groups']['ctrl']['type'])) {
$tempColumns = array('tx_extbase_type' => array('exclude' => 1, 'label' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.0', '0'), array('LLL:EXT:extbase/Resources/Private/Language/locallang_db.xml:fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup', 'Tx_Extbase_Domain_Model_FrontendUserGroup')), 'size' => 1, 'maxitems' => 1, 'default' => '0')));
t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_extbase_type');
$TCA['fe_groups']['ctrl']['type'] = 'tx_extbase_type';
}
$TCA['fe_groups']['types']['Tx_Extbase_Domain_Model_FrontendUserGroup'] = $TCA['fe_groups']['types']['0'];
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$TCA['tx_bbb_test'] = array('ctrl' => array('tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'hideTable' => TRUE, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php'));
$tempColumns = array('tx_bbb_test' => array('config' => array('type' => 'input')));
if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6001000) {
t3lib_div::loadTCA('tx_aaa_test');
}
t3lib_extMgm::addTCAcolumns('tx_aaa_test', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tx_aaa_test', 'tx_bbb_test;;;;1-1-1');
示例5: Array
'selicon_cols' => 10,
)
),
'tx_templavoila_flex' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_flex',
'config' => Array (
'type' => 'flex',
'ds_pointerField' => 'tx_templavoila_ds',
'ds_pointerField_searchParent' => 'pid',
'ds_pointerField_searchParent_subField' => 'tx_templavoila_next_ds',
'ds_tableField' => 'tx_templavoila_datastructure:dataprot',
)
),
);
t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 1);
if ($_EXTCONF['enable.']['selectDataStructure']) {
if(tx_templavoila_div::convertVersionNumberToInteger(TYPO3_version) >= 4005000) {
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_ds;;;;1-1-1,tx_templavoila_to', '', 'replace:backend_layout');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_next_ds;;;;1-1-1,tx_templavoila_next_to', '', 'replace:backend_layout_next_level');
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_flex;;;;1-1-1', '', 'after:title');
} else {
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';
示例6: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/', 'betatext');
$TCA['tx_webetatext_text'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_text', 'label' => 'TextID', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_text.gif'));
$TCA['tx_webetatext_comment'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_comment', 'label' => 'Content', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_comment.gif'));
$TCA['tx_webetatext_vote'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_vote', 'label' => 'uid', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_voting.gif'));
$TCA['tx_webetatext_process'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_process', 'label' => 'StepIndex', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY sort', 'sortby' => 'sort', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_process.gif'));
t3lib_extMgm::allowTableOnStandardPages("tx_webetatext_process");
$addColumns = array('tx_webetatext_logo' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_logo', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], 'max_size' => 1000, 'uploadfolder' => 'uploads/tx_webetatext', 'show_thumbs' => 1, 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_webetatext_verified' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_verified', 'config' => array('type' => 'check', 'default' => '1')), 'tx_webetatext_verification_requested' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_verification_requested', 'config' => array('type' => 'check', 'default' => '0')));
t3lib_extMgm::addTCAcolumns('fe_users', $addColumns, true);
t3lib_extMgm::addToAllTCATypes('fe_users', '--div--;betatext,tx_webetatext_logo,tx_webetatext_verification_requested,tx_webetatext_verified;;;;1-1-1');
/* Seiteneinstellungen */
$TCA['pages']['columns']['doktype']['config']['items'][] = array('betatext: kommentierbare Seite', 124, 'EXT:we_betatext/icons/bbt-page.gif');
t3lib_SpriteManager::addTcaTypeIcon('pages', '124', '../typo3conf/ext/we_betatext/icons/bbt-page.png');
$addColumns = array('tx_webetatext_enable' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_enable', 'config' => array('type' => 'check', 'default' => '0')), 'tx_webetatext_infomail_to' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_infomail_to', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim', 'default' => '')), 'tx_webetatext_pstep_title' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_pstep_title', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim', 'default' => '')));
t3lib_extMgm::addTCAcolumns('pages', $addColumns, true);
t3lib_extMgm::addToAllTCAtypes('pages', '--div--;betatext,tx_webetatext_enable,tx_webetatext_infomail_to,tx_webetatext_pstep_title;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
t3lib_extMgm::addModulePath('web_txwwbbtM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
t3lib_extMgm::addModule('web', 'txwwbbtM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
}
示例7: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tempColumns = array('tx_newsvideo_ratio' => array('exclude' => 0, 'label' => 'LLL:EXT:tx_newsvideo/locallang_db.xml:tx_newsvideo_ratio', 'config' => array('type' => 'input', 'size' => 5, 'eval' => 'text')));
t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tt_news', 'tx_newsvideo_ratio;;;;');
t3lib_div::loadTCA('tx_news');
t3lib_extMgm::addTCAcolumns('tx_news', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tx_news', 'tx_newsvideo_ratio;;;;');
示例8: die
<?php
/**
* lokale Config laden.
* @package tx_mklib
* @subpackage tx_mklib_tca
*/
/**
* alle benötigten Klassen einbinden etc.
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Nur für für tests wichtig.
$_EXTCONF = isset($_EXTCONF) ? $_EXTCONF : ($_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mklib']);
$_EXTKEY = isset($_EXTKEY) ? $_EXTKEY : 'mklib';
// Konfiguration umwandeln
$_EXTCONF = is_array($_EXTCONF) ? $_EXTCONF : unserialize($_EXTCONF);
// tca integrieren für tx_mklib_wordlist einbinden, wenn gesetzt.
if (is_array($_EXTCONF) && array_key_exists('tableWordlist', $_EXTCONF) && intval($_EXTCONF['tableWordlist'])) {
tx_rnbase::load('tx_mklib_srv_Wordlist');
$TCA['tx_mklib_wordlist'] = tx_mklib_srv_Wordlist::getTca();
}
// static_info_tables um PLZ regeln erweitern
if (t3lib_extMgm::isLoaded('static_info_tables')) {
t3lib_div::loadTCA('static_countries');
$tempColumns = array('zipcode_rule' => array('exclude' => '0', 'label' => 'LLL:EXT:mklib/locallang_db.xml:static_countries.zipcode_rule', 'config' => array('type' => 'input', 'size' => '1', 'eval' => 'trim,int')), 'zipcode_length' => array('exclude' => '0', 'label' => 'LLL:EXT:mklib/locallang_db.xml:static_countries.zipcode_length', 'config' => array('type' => 'input', 'size' => '2', 'eval' => 'trim,int')));
t3lib_extMgm::addTCAcolumns('static_countries', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('static_countries', 'zipcode_rule');
t3lib_extMgm::addToAllTCAtypes('static_countries', 'zipcode_length');
}
示例9: array
if (TYPO3_MODE == 'BE') {
// Create wizard configuration:
$wizConfig = array('type' => 'userFunc', 'userFunc' => 'EXT:lorem_ipsum/class.tx_loremipsum_wiz.php:tx_loremipsum_wiz->main', 'params' => array());
// Load affected tables (except "pages"):
t3lib_div::loadTCA('tt_content');
t3lib_div::loadTCA('pages_language_overlay');
t3lib_div::loadTCA('sys_language');
// *********************
// Apply wizards to:
// *********************
// Titles:
$TCA['pages']['columns']['title']['config']['wizards']['tx_loremipsum'] = $TCA['pages']['columns']['nav_title']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['title']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['nav_title']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'title')));
// Subheaders
$TCA['pages']['columns']['subtitle']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['subtitle']['config']['wizards']['tx_loremipsum'] = $TCA['tt_content']['columns']['header']['config']['wizards']['tx_loremipsum'] = $TCA['tt_content']['columns']['subheader']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'header')));
// Description / Abstract:
$TCA['pages']['columns']['description']['config']['wizards']['tx_loremipsum'] = $TCA['pages']['columns']['abstract']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['description']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['abstract']['config']['wizards']['tx_loremipsum'] = $TCA['tt_content']['columns']['imagecaption']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'description', 'endSequence' => '46,32', 'add' => TRUE)));
// Keywords field:
$TCA['pages']['columns']['keywords']['config']['wizards']['tx_loremipsum'] = $TCA['pages_language_overlay']['columns']['keywords']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'word', 'endSequence' => '44,32', 'add' => TRUE, 'count' => 30)));
// Bodytext field in Content Elements:
$TCA['tt_content']['columns']['bodytext']['config']['wizards']['_VERTICAL'] = 1;
$TCA['tt_content']['columns']['bodytext']['config']['wizards']['tx_loremipsum_2'] = array_merge($wizConfig, array('params' => array('type' => 'loremipsum', 'endSequence' => '32', 'add' => TRUE)));
$TCA['tt_content']['columns']['bodytext']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'paragraph', 'endSequence' => '10', 'add' => TRUE)));
$TCA['tt_content']['columns']['image']['config']['wizards']['_POSITION'] = 'bottom';
$TCA['tt_content']['columns']['image']['config']['wizards']['tx_loremipsum'] = array_merge($wizConfig, array('params' => array('type' => 'images')));
// Adding type selector to languages records:
$tempColumns = array('tx_loremipsum_type' => array('label' => 'Select Dummy Content type:', 'config' => array('type' => 'select', 'items' => array(array('Traditional Lorem Ipsum', '0'), array('Russian Sample Text', '1')), 'default' => '0')));
t3lib_extMgm::addTCAcolumns('sys_language', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('sys_language', 'tx_loremipsum_type');
// CSH:
t3lib_extMgm::addLLrefForTCAdescr('xEXT_loremipsum', 'EXT:lorem_ipsum/locallang_csh.xml');
}
示例10: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tempColumns = array("tx_3pxosmap_lat" => array("exclude" => 1, "label" => "LLL:EXT:3px_osmap/locallang_db.xml:tt_address.tx_3pxosmap_lat", "config" => array("type" => "input", "size" => "30", "eval" => "trim")), "tx_3pxosmap_lon" => array("exclude" => 1, "label" => "LLL:EXT:3px_osmap/locallang_db.xml:tt_address.tx_3pxosmap_lon", "config" => array("type" => "input", "size" => "30", "eval" => "trim")));
t3lib_div::loadTCA("tt_address");
t3lib_extMgm::addTCAcolumns("tt_address", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("tt_address", "tx_3pxosmap_lat;;;;1-1-1, tx_3pxosmap_lon");
t3lib_extMgm::allowTableOnStandardPages('tx_3pxosmap_maps');
t3lib_extMgm::addToInsertRecords('tx_3pxosmap_maps');
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
t3lib_extMgm::addPlugin(array('LLL:EXT:3px_osmap/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type');
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/osmap/', 'osmap');
t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/flexform_ds_pi1.xml');
示例11: array
<?php
/**
* System workspaces - Defines the offline workspaces available to users in TYPO3.
*/
$TCA['sys_workspace'] = array('ctrl' => $TCA['sys_workspace']['ctrl'], 'columns' => array('title' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title', 'config' => array('type' => 'input', 'size' => '20', 'max' => '30', 'eval' => 'required,trim,unique')), 'description' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description', 'config' => array('type' => 'text', 'rows' => 5, 'cols' => 30)), 'adminusers' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.adminusers', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'be_users,be_groups', 'prepend_tname' => 1, 'size' => '3', 'maxitems' => '10', 'autoSizeMax' => 10, 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'members' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.members', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'be_users,be_groups', 'prepend_tname' => 1, 'size' => '3', 'maxitems' => '100', 'autoSizeMax' => 10, 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'db_mountpoints' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '3', 'maxitems' => '10', 'autoSizeMax' => 10, 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'file_mountpoints' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints', 'config' => array('type' => 'select', 'foreign_table' => 'sys_filemounts', 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 'size' => '3', 'maxitems' => '10', 'autoSizeMax' => 10, 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 'iconsInOptionTags' => 1)), 'publish_time' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_time', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'datetime', 'default' => '0', 'checkbox' => '0')), 'unpublish_time' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.unpublish_time', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'datetime', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020))), 'displayCond' => 'FALSE'), 'freeze' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.freeze', 'config' => array('type' => 'check', 'default' => '0')), 'live_edit' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.live_edit', 'config' => array('type' => 'check', 'default' => '0')), 'disable_autocreate' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.disable_autocreate', 'config' => array('type' => 'check', 'default' => '0')), 'swap_modes' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.swap_modes', 'config' => array('type' => 'select', 'items' => array(array('', 0), array('Swap-Into-Workspace on Auto-publish', 1), array('Disable Swap-Into-Workspace', 2)))), 'publish_access' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_access', 'config' => array('type' => 'check', 'items' => array(array('Publish only content in publish stage', 0), array('Only workspace owner can publish', 0)))), 'stagechg_notification' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.stagechg_notification', 'config' => array('type' => 'select', 'items' => array(array('', 0), array('Notify users on next stage only', 1), array('Notify all users on any change', 10)))), 'custom_stages' => array('exclude' => 1, 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.custom_stages', 'config' => array('type' => 'inline', 'foreign_table' => 'sys_workspace_stage', 'appearance' => 'useSortable,expandSingle', 'foreign_field' => 'parentid', 'foreign_table_field' => 'parenttable', 'minitems' => 0), 'default' => 0)), 'types' => array('0' => array('showitem' => 'title,description,
--div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.users,adminusers,members,stagechg_notification,
--div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
--div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
--div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_filemounts.tabs.staging,custom_stages,
--div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.other,freeze,live_edit,disable_autocreate,swap_modes,publish_access')));
/**
* Workspace stages - Defines the single workspace stages which are related to a workspace.
*/
$TCA['sys_workspace_stage'] = array('ctrl' => $TCA['sys_workspace_stage']['ctrl'], 'columns' => array('title' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title', 'config' => array('type' => 'input', 'size' => '20', 'max' => '30', 'eval' => 'required,trim')), 'responsible_persons' => array('label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.responsible_persons', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'be_users,be_groups', 'prepend_tname' => 1, 'size' => '3', 'maxitems' => '100', 'autoSizeMax' => 20, 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'default_mailcomment' => array('label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.default_mailcomment', 'config' => array('type' => 'text', 'rows' => 5, 'cols' => 30)), 'parentid' => array('exclude' => 0, 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.parentid', 'config' => array('type' => 'passthrough')), 'parenttable' => array('exclude' => 0, 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.parenttable', 'config' => array('type' => 'passthrough'))), 'types' => array('0' => array('showitem' => 'title,responsible_persons,default_mailcomment')));
// if other versioning options than element versions are active,
// the TCA column needs to be added as well
if (isset($GLOBALS['TYPO3_CONF_VARS']['BE']['elementVersioningOnly']) && !$GLOBALS['TYPO3_CONF_VARS']['BE']['elementVersioningOnly']) {
$additionalWorkspaceTcaColumn = array('vtypes' => array('label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.vtypes', 'config' => array('type' => 'check', 'items' => array(array('Element', 0), array('Page', 0), array('Branch', 0)))));
t3lib_extMgm::addTCAcolumns('sys_workspace', $additionalWorkspaceTcaColumn, FALSE);
t3lib_extMgm::addToAllTCAtypes('sys_workspace', 'vtypes', '', 'after:swap_modes');
}
示例12: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:countrymanager/Configuration/TSconfig/defaultlanguage.txt">');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Country', 'Display current country');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Countries', 'Display list of countries');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Languages', 'Display list of languages');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/ExtensionConfiguration', 'Country Manager – Extension Configuration');
// moved to ext_typoscript_setup.txt
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/AutomaticLanguageConfiguration', 'Country Manager – Automatic Language Configuration (optional)');
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'tools', 'countrymanagertsupdate', '', array('Backend' => 'updatetyposcript'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_countrymanagertsupdate.xml'));
}
$tmp_countrymanager_columns = array('title' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.title', 'config' => array('type' => 'input', 'size' => 15, 'eval' => 'trim,required')), 'language' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.language', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'static_languages', 'size' => '1', 'maxitems' => '1', 'minitems' => '1', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'menulabel' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.menulabel', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim,required')), 'country' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.country', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'static_countries', 'size' => '1', 'maxitems' => '1', 'minitems' => '1', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))));
t3lib_extMgm::addTCAcolumns('sys_language', $tmp_countrymanager_columns, 1);
t3lib_extMgm::addToAllTCAtypes('sys_language', 'title,language,country,menulabel', '', 'after:title');
示例13: 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'));
}
示例14: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'HR Interactive SEO');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Robots', 'Generate a robots.txt');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Sitemap', 'Generate a sitemap.xml');
/**
* Add the new columns to the pages TCA
*/
$tmp_hriseo_columns = (include_once t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/pages.php');
// add to TCA
t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages', $tmp_hriseo_columns, 1);
// add to TCA::ctrl section
$TCA['pages']['columns'][$TCA['pages']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:hriseo/Resources/Private/Language/locallang_db.xml:tx_hriseo.title', 'Tx_Hriseo_Pages');
// add editing tab to types:1 (pages does only have one type..)
$TCA['pages']['types']['1']['showitem'] = $TCA['pages']['types']['1']['showitem'];
$TCA['pages']['types']['1']['showitem'] .= ',--div--;LLL:EXT:hriseo/Resources/Private/Language/locallang_db.xml:tx_hriseo.title,';
$TCA['pages']['types']['1']['showitem'] .= 'tx_hriseo_changefreq, tx_hriseo_priority';
示例15: die
<?php
if (!defined("TYPO3_MODE")) {
die("Access denied.");
}
$tempColumns = array("tx_dlcube04CAS_auth_cas_required" => array("exclude" => 1, "label" => "LLL:EXT:dlcube04_CAS/locallang_db.php:pages.tx_dlcube04CAS_auth_cas_required", "config" => array("type" => "check")));
t3lib_div::loadTCA("pages");
t3lib_extMgm::addTCAcolumns("pages", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("pages", "tx_dlcube04CAS_auth_cas_required;;;;1-1-1");
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi2"] = "layout,select_key";
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi2", $_EXTKEY . "_pi2"), "list_type");
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi3"] = "layout,select_key";
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi4"] = "layout,select_key";
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi5"] = "layout,select_key";
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi6"] = "layout,select_key";
t3lib_div::loadTCA("tt_content");
$TCA["tt_content"]["types"]["list"]["subtypes_excludelist"][$_EXTKEY . "_pi7"] = "layout,select_key";
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi3", $_EXTKEY . "_pi3"), "list_type");
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi4", $_EXTKEY . "_pi4"), "list_type");
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi5", $_EXTKEY . "_pi5"), "list_type");
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi6", $_EXTKEY . "_pi6"), "list_type");
t3lib_extMgm::addPlugin(array("LLL:EXT:dlcube04_CAS/locallang_db.php:tt_content.list_type_pi7", $_EXTKEY . "_pi7"), "list_type");
if (TYPO3_MODE == "BE") {
$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_dlcube04CAS_pi3_wizicon"] = t3lib_extMgm::extPath($_EXTKEY) . "pi3/class.tx_dlcube04CAS_pi3_wizicon.php";
}
if (TYPO3_MODE == "BE") {