本文整理汇总了PHP中t3lib_extMgm::addToAllTCAtypes方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::addToAllTCAtypes方法的具体用法?PHP t3lib_extMgm::addToAllTCAtypes怎么用?PHP t3lib_extMgm::addToAllTCAtypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::addToAllTCAtypes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Spam Remover Plugin');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Spam Remover for typo3org');
t3lib_extMgm::addLLrefForTCAdescr('tx_t3orgspamremover_domain_model_spamreport', 'EXT:t3org_spamremover/Resources/Private/Language/locallang_csh_tx_t3orgspamremover_domain_model_spamreport.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_t3orgspamremover_domain_model_spamreport');
$TCA['tx_t3orgspamremover_domain_model_spamreport'] = array('ctrl' => array('title' => 'LLL:EXT:t3org_spamremover/Resources/Private/Language/locallang_db.xml:tx_t3orgspamremover_domain_model_spamreport', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,description,reporter,spammer,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/SpamReport.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3orgspamremover_domain_model_spamreport.gif'));
t3lib_div::loadTCA('fe_users');
$tempColumns = array('tx_t3orgspamremover_spam' => array('exclude' => 0, 'label' => 'Reported Spam', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_t3orgspamremover_domain_model_spamreport', 'appearace' => array('collapseAll' => TRUE), 'foreign_field' => 'spammer')));
t3lib_extMgm::addTCAcolumns("fe_users", $tempColumns, TRUE);
t3lib_extMgm::addToAllTCAtypes('fe_users', '--div--;Reported Spam,tx_t3orgspamremover_spam');
示例2: array
}
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'));
/* --------------------------------------------------
Plugin
示例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: 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');
示例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: array
}
$tempColumns = array("firstname" => array("exclude" => 0, "label" => "LLL:EXT:fb_magento/locallang_db.xml:fe_users.tx_fbmagento_firstname", "config" => array("type" => "input", "size" => "30")), "tx_fbmagento_id" => array("exclude" => 1, "label" => "LLL:EXT:fb_magento/locallang_db.xml:fe_users.tx_fbmagento_id", "config" => array("type" => "input", "size" => "30")));
t3lib_div::loadTCA("fe_users");
t3lib_extMgm::addTCAcolumns("fe_users", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("fe_users", "firstname;;;;1-1-1");
t3lib_extMgm::addToAllTCAtypes("fe_users", "tx_fbmagento_id;;;;1-1-1");
// add store mapping
$tempColumns = array("tx_fbmagento_store" => array("exclude" => 0, "label" => "LLL:EXT:fb_magento/locallang_db.xml:sys_language.tx_fbmagento_store", "config" => array("type" => "select", "itemsProcFunc" => "EXT:fb_magento/lib/class.tx_fbmagento_tcafields.php:tx_fbmagento_tcafields->itemsProcFunc_languages", "maxitems" => 1)));
t3lib_div::loadTCA("sys_language");
t3lib_extMgm::addTCAcolumns("sys_language", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("sys_language", "tx_fbmagento_store;;;;1-1-1");
// add group mapping
$tempColumns = array("tx_fbmagento_group" => array("exclude" => 0, "label" => "LLL:EXT:fb_magento/locallang_db.xml:be_users.tx_fbmagento_group", "config" => array("type" => "select", "items" => array(array('LLL:EXT:fb_magento/locallang_db.xml:be_users.tx_fbmagento_group.0', '')), "itemsProcFunc" => "EXT:fb_magento/lib/class.tx_fbmagento_tcafields.php:tx_fbmagento_tcafields->itemsProcFunc_usergroups", "maxitems" => 1)));
t3lib_div::loadTCA("be_users");
t3lib_extMgm::addTCAcolumns("be_users", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("be_users", "tx_fbmagento_group;;;;1-1-1");
if (TYPO3_MODE == "BE") {
// add module after 'Web'
if (!isset($TBE_MODULES['txfbmagentoMgroup'])) {
$temp_TBE_MODULES = array();
foreach ($TBE_MODULES as $key => $val) {
$temp_TBE_MODULES[$key] = $val;
if ($key == 'web') {
$temp_TBE_MODULES['txfbmagentoMgroup'] = $val;
}
}
$TBE_MODULES = $temp_TBE_MODULES;
}
// add group module
t3lib_extMgm::addModule('txfbmagentoMgroup', '', '', t3lib_extmgm::extPath($_EXTKEY) . 'mod_group/');
// add admin module
示例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: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lonewsdownloads']);
if ($confArr['addDescriptionField']) {
$tempColumns = array('tx_lonewsdownloads_downloadlabel' => array('exclude' => 0, 'label' => 'LLL:EXT:lonewsdownloads/locallang_db.xml:tt_news.tx_lonewsdownloads_downloadlabel', 'config' => array('type' => 'text', 'cols' => '30', 'rows' => '5')));
t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tt_news', 'tx_lonewsdownloads_downloadlabel;;;;1-1-1', '', 'before:news_files');
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/tt_news_download/', 'lonewsdownload standard');
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/tt_news_download_simplelist/', 'lonewsdownload simple list');
示例10: 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;;;;');
示例11: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
global $TYPO3_CONF_VARS;
// class for displaying the category tree in BE forms.
include_once t3lib_extMgm::extPath($_EXTKEY) . 'res/class.tx_rggm_treeview.php';
// Default items for tt_address
$tempColumns = array("tx_rggooglemap_lng" => array("exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lng", "config" => array("type" => "input", "size" => "20")), "tx_rggooglemap_lat" => array("exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lat", "config" => array("type" => "input", "size" => "20")), "tx_rggooglemap_display" => array("exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_display", "config" => array("type" => "check", "default" => "1")), "tx_rggooglemap_cat2" => array('exclude' => 1, 'label' => 'LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_cat', 'config' => array('type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_rggm_treeview->displayCategoryTree', 'treeView' => 1, 'treeName' => 'txchtreeviewexample', 'foreign_table' => 'tx_rggooglemap_cat', 'size' => 5, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 10, 'wizards' => array())), "tx_rggooglemap_ce" => array("exclude" => 1, 'label' => 'LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_ce', "config" => array("type" => "group", "internal_type" => "db", "allowed" => "tt_content", "size" => 2, "minitems" => 0, "maxitems" => 5)));
// fields for tt_address
$value = 'tt_address';
t3lib_div::loadTCA($value);
t3lib_extMgm::addTCAcolumns($value, $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes($value, "tx_rggooglemap_lng;;;;1-1-1, tx_rggooglemap_lat, tx_rggooglemap_display, tx_rggooglemap_cat2, tx_rggooglemap_ce");
/*
* GENERIC PART
*/
// include generic table access
#require_once(t3lib_extMgm::extPath('rggooglemap').'res/class.tx_rggooglemap_table.php');
#$genericTable = t3lib_div::makeInstance('tx_rggooglemap_table');
// get tables from EM settings
$tmp_confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['rggooglemap']);
$tables = explode(',', $tmp_confArr['tables']);
foreach ($tables as $key => $singleTable) {
$singleTable = trim($singleTable);
$serviceChain = '';
while (is_object($serviceObj = t3lib_div::makeInstanceService('rggmData', $singleTable, $serviceChain))) {
$serviceChain .= ',' . $serviceObj->getServiceKey();
if ($tempuser = $serviceObj->init()) {
// user found, just stop to search for more
示例12: 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');
}
示例13: 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');
示例14: die
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
/**
* Register uploads plugin
*/
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Upload', 'File-Uploading for frontend users');
$pluginSignature = strtolower($extensionName) . '_upload';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key';
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Download', 'Downloading of uploaded files from frontend users');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Folder', 'Folder structure for frontend users');
$pluginSignature = strtolower($extensionName) . '_download';
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/download.xml');
t3lib_div::loadTCA('fe_users');
t3lib_extMgm::allowTableOnStandardPages('tx_feupload_domain_model_file');
t3lib_extMgm::allowTableOnStandardPages('tx_feupload_domain_model_folder');
$TCA['tx_feupload_domain_model_file'] = array('ctrl' => array('title' => 'LLL:EXT:feupload/Resources/Private/Language/tca.xml:tx_feupload_domain_model_file', 'label' => 'title', 'crdate' => 'crdate', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/File.php', 'dividers2tabs' => true, 'searchFields' => 'title,file', 'requestUpdate' => 'visibility', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Private/Icons/default.png'));
$TCA['tx_feupload_domain_model_folder'] = array('ctrl' => array('title' => 'LLL:EXT:feupload/Resources/Private/Language/tca.xml:tx_feupload_domain_model_folder', 'label' => 'title', 'crdate' => 'crdate', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Folder.php', 'dividers2tabs' => true, 'searchFields' => 'title', 'requestUpdate' => 'visibility', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Private/Icons/folder.png'));
t3lib_div::loadTCA('fe_groups');
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'feupload_storage_pid;;;;1-1-1');
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'feupload_append_group_ids;;;;1-1-1');
$TCA['fe_groups']['columns'] += array('feupload_storage_pid' => array('exclude' => 1, 'label' => 'LLL:EXT:feupload/Resources/Private/Language/tca.xml:fe_groups.storage_pid', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'wizards' => array('suggest' => array('type' => 'suggest')))));
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/default/', 'FE Upload default settings');
示例15: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addToAllTCAtypes('tt_content', 'subheader', '', 'after:header');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'FluidFoundationTheme - Foundation 5 based Pages and Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Smedjadotcom.Fluidfoundationtheme', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Smedjadotcom.Fluidfoundationtheme', 'Content');