<?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');
} 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
<?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'];
<?php if (!defined("TYPO3_MODE")) { die("Access denied."); } // ****************************************************************** // static_template // ****************************************************************** $TCA['static_template'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:statictemplates/locallang_tca.xml:static_template', 'readOnly' => 1, 'adminOnly' => 1, 'rootLevel' => 1, 'is_static' => 1, 'default_sortby' => 'ORDER BY title', 'crdate' => 'crdate', 'iconfile' => 'template_standard.gif', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php')); $tempField = array('include_static' => array('label' => 'LLL:EXT:statictemplates/locallang_tca.xml:include_static', 'config' => array('type' => 'select', 'foreign_table' => 'static_template', 'foreign_table_where' => 'ORDER BY static_template.title DESC', 'size' => 10, 'maxitems' => 20, 'default' => ''))); t3lib_div::loadTCA('sys_template'); t3lib_extMgm::addTCAcolumns('sys_template', $tempField, 1); t3lib_extMgm::addToAllTCAtypes('sys_template', 'include_static;;2;;5-5-5', '', 'before:includeStaticAfterBasedOn');
<?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');
<?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');
<?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/'); }
} $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
<?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'); }
<?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');
<?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;;;;');
<?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
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'); }
<?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');
* 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');
<?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');
} $_EXTCONF = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['felogin']); t3lib_div::loadTCA('tt_content'); if (t3lib_div::int_from_ver(TYPO3_version) >= 4002000) { t3lib_extMgm::addPiFlexFormValue('*', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml', 'login'); } else { t3lib_extMgm::addPiFlexFormValue('default', 'FILE:EXT:' . $_EXTKEY . '/flexform.xml'); } #replace login $TCA['tt_content']['types']['login']['showitem'] = '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.plugin, pi_flexform;;;;1-1-1, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.behaviour, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended'; // Adds the redirect field to the fe_groups table $tempColumns = array('felogin_redirectPid' => array('exclude' => 1, 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 1, 'minitems' => 0, 'maxitems' => 1))); t3lib_div::loadTCA('fe_groups'); t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1'); // Adds the redirect field and the forgotHash field to the fe_users-table $tempColumns = array("felogin_redirectPid" => array("exclude" => 1, "label" => "LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid", "config" => array("type" => "group", "internal_type" => "db", "allowed" => "pages", "size" => 1, "minitems" => 0, "maxitems" => 1)), 'felogin_forgotHash' => array('exclude' => 1, 'label' => 'LLL:EXT:felogin/locallang_db.xml:felogin_forgotHash', 'config' => array('type' => 'passthrough'))); t3lib_div::loadTCA("fe_users"); t3lib_extMgm::addTCAcolumns("fe_users", $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes("fe_users", "felogin_redirectPid;;;;1-1-1");
<?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')); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Opengraph/', 'in2facebook Main'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Share/', 'Share Buttons'); $tempColumns = array('tx_in2facebook_title' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'tx_in2facebook_type' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_activities', '--div--'), array('activity', 'activity'), array('sport', 'sport'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_business', '--div--'), array('bar', 'bar'), array('company', 'company'), array('cafe', 'cafe'), array('hotel', 'hotel'), array('restaurant', 'restaurant'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_groups', '--div--'), array('cause', 'cause'), array('sports_league', 'sports_league'), array('sports_team', 'sports_team'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_organizations', '--div--'), array('band', 'band'), array('government', 'government'), array('non_profit', 'non_profit'), array('school', 'school'), array('university', 'university'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_people', '--div--'), array('actor', 'actor'), array('athlete', 'athlete'), array('author', 'author'), array('director', 'director'), array('musician', 'musician'), array('politician', 'politician'), array('public_figure', 'public_figure'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_places', '--div--'), array('city', 'city'), array('country', 'country'), array('landmark', 'landmark'), array('state_province', 'state_province'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_entertainment', '--div--'), array('album', 'album'), array('book', 'book'), array('drink', 'drink'), array('food', 'food'), array('game', 'game'), array('product', 'product'), array('song', 'song'), array('movie', 'movie'), array('tv_show', 'tv_show'), array('LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_type.div_websites', '--div--'), array('blog', 'blog'), array('website', 'website'), array('article', 'article')))), 'tx_in2facebook_url' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_url', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'tx_in2facebook_image' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_image', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => 'gif,png,jpeg,jpg', 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'], 'uploadfolder' => 'uploads/tx_in2facebook', 'show_thumbs' => 1, 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_in2facebook_site_name' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_site_name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'tx_in2facebook_admins' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_admins', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim')), 'tx_in2facebook_description' => array('exclude' => 1, 'label' => 'LLL:EXT:in2facebook/locallang_db.xml:tx_in2facebook_description', 'config' => array('type' => 'text', 'cols' => '30', 'rows' => '30'))); t3lib_div::loadTCA('pages'); t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('pages', 'tx_in2facebook_title, tx_in2facebook_type, tx_in2facebook_url, tx_in2facebook_image, tx_in2facebook_site_name, tx_in2facebook_admins, tx_in2facebook_description');
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');
/** * Add setting columns to the TCA. * * @param string $table Table to add settings to * @param array $settings Array of settings to register. * Key is the setting name, value its title * * @return void */ protected static function addToTcaColumns($table, array $settings) { global $TCA; t3lib_div::loadTCA($table); if (!isset($TCA[$table])) { return; } t3lib_div::loadTCA('tx_contexts_contexts'); if (!array_key_exists(self::RECORD_SETTINGS_COLUMN, $TCA[$table]['columns'])) { $recordSettingsConf = array("exclude" => 1, "label" => 'LLL:' . self::LANG_FILE . ':tabname', "config" => array("type" => "user", "size" => "30", "userFunc" => 'Tx_Contexts_Service_Tca->renderRecordSettingsField', 'settings' => $settings)); $arColumns = array(self::RECORD_SETTINGS_COLUMN => $recordSettingsConf); $arFlatColumns = Tx_Contexts_Api_Configuration::getFlatColumns($table); if (count($arFlatColumns)) { //add passthrough fields to keep settings when copying records foreach ($arFlatColumns as $arSetting) { foreach ($arSetting as $columnName) { $arColumns[$columnName] = array('config' => array('type' => 'passthrough')); } } } t3lib_extMgm::addTCAcolumns($table, $arColumns, 1); switch ($table) { case 'pages': t3lib_extMgm::addToAllTCAtypes($table, self::RECORD_SETTINGS_COLUMN, '1,4,5', 'after:fe_group'); t3lib_extMgm::addToAllTCAtypes($table, self::RECORD_SETTINGS_COLUMN, '254', 'after:hidden'); break; case 'tt_content': t3lib_extMgm::addToAllTCAtypes($table, self::RECORD_SETTINGS_COLUMN, '', 'after:fe_group'); break; } } else { $TCA[$table]['columns'][self::RECORD_SETTINGS_COLUMN]['config']['settings'] = array_merge($TCA[$table]['columns'][self::RECORD_SETTINGS_COLUMN]['config']['settings'], $settings); } $defaultSettingsColumn = 'default_settings_' . $table; if (!array_key_exists($defaultSettingsColumn, $TCA['tx_contexts_contexts']['columns'])) { $defaultSettingsConf = array("exclude" => 1, 'label' => $TCA[$table]['ctrl']['title'], 'config' => array('type' => 'user', 'size' => 30, 'userFunc' => 'Tx_Contexts_Service_Tca->renderDefaultSettingsField', 'table' => $table, 'settings' => $settings)); t3lib_extMgm::addTCAcolumns('tx_contexts_contexts', array($defaultSettingsColumn => $defaultSettingsConf), 1); t3lib_extMgm::addToAllTCAtypes('tx_contexts_contexts', $defaultSettingsColumn); } else { $TCA['tx_contexts_contexts']['columns'][$defaultSettingsColumn]['config']['settings'] = array_merge($TCA['tx_contexts_contexts']['columns'][$defaultSettingsColumn]['config']['settings'], $settings); } }
<?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") {
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $tempColumns = array("tx_newssdf_state" => array("exclude" => 1, "label" => "LLL:EXT:newssdf/locallang_db.php:tt_news.tx_newssdf_state", "config" => array("type" => "check", "default" => 1)), 'tx_newssdf_calendardate' => array('exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', "label" => "LLL:EXT:newssdf/locallang_db.php:tt_news.tx_newssdf_calendardate", 'config' => array('type' => 'input', 'size' => '10', 'max' => '20', 'eval' => 'datetime', 'checkbox' => '0', 'default' => '0')), 'tx_newssdf_calendardate_end' => array('exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', "label" => "LLL:EXT:newssdf/locallang_db.php:tt_news.tx_newssdf_calendardate_end", 'config' => array('type' => 'input', 'size' => '10', 'max' => '20', 'eval' => 'datetime', 'checkbox' => '0', 'default' => '0'))); t3lib_div::loadTCA("tt_news"); t3lib_extMgm::addTCAcolumns("tt_news", $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes("tt_news", "--div--;LLL:EXT:newssdf/locallang_db.xml:tt_news.tx_newssdf_newssdftab,tx_newssdf_state,tx_newssdf_calendardate,tx_newssdf_calendardate_end,--div--;LLL:EXT:newssdf/locallang_db.xml:tt_news.tx_newssdf_systemoptionstab"); 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:newssdf/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type'); t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:newssdf/flexform_ds.xml'); #t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","News Sdf"); t3lib_extMgm::addStaticFile($_EXTKEY, "static/", "News Sdf"); if (TYPO3_MODE == "BE") { $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_newssdf_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY) . 'pi1/class.tx_newssdf_pi1_wizicon.php'; } /* t3lib_extMgm::addStaticFile($_EXTKEY,'static/News_Sdf/', 'News Sdf'); */
if (!tx_oelib_configurationProxy::getInstance('seminars')->getAsBoolean('useStoragePid')) { return ''; } return 'AND (' . $tableName . '.pid = ###STORAGE_PID### ' . 'OR ###STORAGE_PID### = 0)'; } } $globalConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['seminars']); $usePageBrowser = (bool) $globalConfiguration['usePageBrowser']; $selectType = $usePageBrowser ? 'group' : 'select'; $addToFeInterface = t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6002000; if (!isset($GLOBALS['TCA']['fe_users']['columns']['tx_seminars_registration'])) { if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6001000) { t3lib_div::loadTCA('fe_users'); } t3lib_extMgm::addTCAcolumns('fe_users', array('tx_seminars_registration' => array('exclude' => 1, 'label' => 'registration (not visible in the BE)', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_seminars_event_types', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'items' => array('' => '')))), $addToFeInterface); } if (!isset($GLOBALS['TCA']['fe_groups']['columns']['tx_seminars_publish_events'])) { t3lib_extMgm::addLLrefForTCAdescr('fe_groups', 'EXT:seminars/Resources/Private/Language/locallang_csh_fe_groups.xml'); if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6001000) { t3lib_div::loadTCA('fe_groups'); } t3lib_extMgm::addTCAcolumns('fe_groups', array('tx_seminars_publish_events' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_publish_events', 'config' => array('type' => 'radio', 'default' => '0', 'items' => array(array('LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_publish_events.I.0', '0'), array('LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_publish_events.I.1', '1'), array('LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_publish_events.I.2', '2')))), 'tx_seminars_events_pid' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_events_pid', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'minitems' => '0', 'maxitems' => '1')), 'tx_seminars_auxiliary_records_pid' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_auxiliary_records_pid', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'minitems' => '0', 'maxitems' => '1')), 'tx_seminars_reviewer' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_reviewer', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'be_users', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_seminars_default_categories' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_default_categories', 'config' => array('type' => $selectType, 'internal_type' => 'db', 'allowed' => 'tx_seminars_categories', 'foreign_table' => 'tx_seminars_categories', 'foreign_table_where' => txSeminarsGetTableRelationsClause('tx_seminars_categories'), 'size' => 10, 'minitems' => 0, 'maxitems' => 999, 'MM' => 'tx_seminars_usergroups_categories_mm', 'wizards' => array('list' => array('type' => 'popup', 'title' => 'List entries', 'icon' => 'list.gif', 'params' => array('table' => 'tx_seminars_categories', 'pid' => (bool) $globalConfiguration['useStoragePid'] ? '###STORAGE_PID###' : '###CURRENT_PID###'), 'script' => 'wizard_list.php', 'JSopenParams' => 'height=480,width=640,status=0,menubar=0,scrollbars=1')))), 'tx_seminars_default_organizer' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:fe_groups.tx_seminars_default_organizer', 'config' => array('type' => $selectType, 'internal_type' => 'db', 'allowed' => 'tx_seminars_organizers', 'foreign_table' => 'tx_seminars_organizers', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'foreign_table_where' => txSeminarsGetTableRelationsClause('tx_seminars_organizers'), 'items' => array('' => '')))), $addToFeInterface); t3lib_extMgm::addToAllTCAtypes('fe_groups', '--div--;LLL:EXT:seminars/locallang_db.xml:fe_groups.tab_event_management,' . 'tx_seminars_publish_events;;;;1-1-1,tx_seminars_events_pid,' . 'tx_seminars_auxiliary_records_pid,tx_seminars_reviewer,' . 'tx_seminars_default_categories, tx_seminars_default_organizer'); } if (!isset($GLOBALS['TCA']['be_groups']['columns']['tx_seminars_events_folder'])) { if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6001000) { t3lib_div::loadTCA('be_groups'); } t3lib_extMgm::addTCAcolumns('be_groups', array('tx_seminars_events_folder' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:be_groups.tx_seminars_events_folder', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'minitems' => '0', 'maxitems' => '1')), 'tx_seminars_registrations_folder' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:be_groups.tx_seminars_registrations_folder', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'minitems' => '0', 'maxitems' => '1')), 'tx_seminars_auxiliaries_folder' => array('exclude' => 1, 'label' => 'LLL:EXT:seminars/locallang_db.xml:be_groups.tx_seminars_auxiliaries_folder', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'minitems' => '0', 'maxitems' => '1'))), $addToFeInterface); t3lib_extMgm::addToAllTCAtypes('be_groups', '--div--;LLL:EXT:seminars/locallang_db.xml:be_groups.tab_event_management,' . 'tx_seminars_events_folder,tx_seminars_registrations_folder,' . 'tx_seminars_auxiliaries_folder,'); }
$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', t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_referenceelementswizard.php', 'LLL:EXT:templavoila/locallang.xml:wiz_refElements', 'wiz' );
<?php // Make sure that we are executed only from the inside of TYPO3 if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Prepare new columns for be_users table $tempColumns = array('tx_openid_openid' => array('exclude' => 0, 'label' => 'LLL:EXT:openid/locallang_db.xml:be_users.tx_openid_openid', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim,nospace,unique'))); // Add new columns to be_users table t3lib_div::loadTCA('be_users'); t3lib_extMgm::addTCAcolumns('be_users', $tempColumns, false); t3lib_extMgm::addToAllTCAtypes('be_users', 'tx_openid_openid;;;;1-1-1', '', 'after:username'); t3lib_extMgm::addLLrefForTCAdescr('be_users', 'EXT:' . $_EXTKEY . '/locallang_csh.xml'); // Prepare new columns for fe_users table $tempColumns['tx_openid_openid']['config']['eval'] = 'trim,nospace,uniqueInPid'; // Add new columns to fe_users table t3lib_div::loadTCA('fe_users'); t3lib_extMgm::addTCAcolumns('fe_users', $tempColumns, false); t3lib_extMgm::addFieldsToAllPalettesOfField('fe_users', 'username', 'tx_openid_openid'); t3lib_extMgm::addLLrefForTCAdescr('fe_users', 'EXT:' . $_EXTKEY . '/locallang_csh.xml'); // Add field to setup module $GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_openid_openid'] = array('type' => 'user', 'table' => 'be_users', 'label' => 'LLL:EXT:openid/locallang_db.xml:_MOD_user_setup.tx_openid_openid', 'csh' => 'tx_openid_openid', 'userFunc' => 'EXT:openid/class.tx_openid_mod_setup.php:tx_openid_mod_setup->renderOpenID', 'access' => 'tx_openid_mod_setup'); t3lib_extMgm::addFieldsToUserSettings('tx_openid_openid', 'after:password2'); t3lib_extMgm::addLLrefForTCAdescr('_MOD_user_setup', 'EXT:openid/locallang_csh_mod.xml');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $tempColumns = array('tx_bnstatictemplates_path' => array('exclude' => 0, 'label' => 'LLL:EXT:bn_statictemplates/locallang_db.xml:sys_template.tx_bnstatictemplates_path', 'displayCond' => 'FIELD:root:REQ:true', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'eval' => 'trim', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1', 'params' => array('blindLinkOptions' => 'mail,page,spec,url,file')))))); t3lib_div::loadTCA('sys_template'); t3lib_extMgm::addTCAcolumns('sys_template', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('sys_template', 'tx_bnstatictemplates_path;;;;1-1-1', '', 'before:include_static_file'); require_once t3lib_extMgm::extPath('bn_statictemplates') . 'class.tx_bnstatictemplates_lib.php'; $TCA['sys_template']['columns']['include_static_file']['config']['itemsProcFunc'] = 'tx_bnstatictemplates_lib->addStaticTemplates';
Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'tx_news_m2', '', array('Administration' => 'index,newNews,newCategory,newsPidListing'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/folder.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_modadministration.xml')); } /* =========================================================================== Ajax call to save tags =========================================================================== */ if (TYPO3_MODE == 'BE') { $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['News::createTag'] = 'typo3conf/ext/news/Classes/Hooks/SuggestReceiverCall.php:Tx_News_Hooks_SuggestReceiverCall->createTag'; } /* =========================================================================== Default configuration =========================================================================== */ $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByCategory'] = 'uid,title,tstamp,sorting'; $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByNews'] = 'tstamp,datetime,crdate,title'; $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByTag'] = 'tstamp,crdate,title'; $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['switchableControllerActions']['list'] = $configuration->getRemoveListActionFromFlexforms(); /* =========================================================================== Extend be_user/be_groups table by a category restriction =========================================================================== */ if (version_compare(TYPO3_branch, '6.0', '>=') || t3lib_extMgm::isLoaded('tcatreeprovider')) { $tempColumns = array('tx_news_categorymounts' => array('exclude' => 1, 'label' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:be_user.tx_news_categorymounts', 'config' => array('type' => 'select', 'foreign_table' => 'tx_news_domain_model_category', 'foreign_table_where' => ' AND (tx_news_domain_model_category.sys_language_uid = 0 OR tx_news_domain_model_category.l10n_parent = 0) ORDER BY tx_news_domain_model_category.sorting', 'renderMode' => 'tree', 'subType' => 'db', 'treeConfig' => array('parentField' => 'parentcategory', 'appearance' => array('expandAll' => TRUE, 'showHeader' => FALSE, 'maxLevels' => 99)), 'size' => 10, 'autoSizeMax' => 20, 'minitems' => 0, 'maxitems' => 99))); if (version_compare(TYPO3_branch, '6.1', '<')) { t3lib_div::loadTCA('be_groups'); } t3lib_extMgm::addTCAcolumns('be_groups', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('be_groups', 'tx_news_categorymounts;;;;1-1-1'); if (version_compare(TYPO3_branch, '6.1', '<')) { t3lib_div::loadTCA('be_users'); } t3lib_extMgm::addTCAcolumns('be_users', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('be_users', 'tx_news_categorymounts;;;;1-1-1'); }
$TCA['tt_content']['columns']['select_key']['config']['wizards']['link']['JSopenParams'] = 'height=400,width=600,status=0,menubar=0,scrollbars=1'; $TCA['tt_content']['columns']['select_key']['config']['eval'] = 'trim'; // t3lib_extMgm::addToAllTCAtypes('tt_content','tx_hetools_filelist_layout', 'uploads', 'after:select_key'); // zusätzliche Felder als Palette einfügen // Neue Palette erzeugen $palettenNr = max(array_keys($TCA['tt_content']['palettes'])) + 1; $TCA['tt_content']['palettes'][$palettenNr] = array(); $TCA['tt_content']['palettes'][$palettenNr]['showitem'] = 'tx_hetools_filelist_dateitypen, ' . 'tx_hetools_filelist_sortierfeld, ' . 'tx_hetools_filelist_sortierung, ' . '--linebreak--, ' . 'tx_hetools_filelist_layout'; $TCA['tt_content']['palettes'][$palettenNr]['canNotCollapse'] = '1'; t3lib_extMgm::addToAllTCAtypes('tt_content', '--palette--;Optionen zu den Dateiverweisen;' . $palettenNr, 'uploads', 'after:select_key'); // Feld 'layout' im Bereich upload ausblenden $uploadItems = explode(',', $TCA['tt_content']['types']['uploads']['showitem']); foreach ($uploadItems as $index => $text) { $eintrag = trim($text); if (strpos($eintrag, 'layout') !== FALSE && strpos($eintrag, 'layout') == 0) { unset($uploadItems[$index]); } } $TCA['tt_content']['types']['uploads']['showitem'] = implode(',', $uploadItems); // Ende Dateiverweise $damColumns = array('tx_hetools_dam_sortiernummer' => array('exclude' => 1, 'label' => 'Sortiernummer', 'config' => array('type' => 'input', 'size' => '3'))); t3lib_div::loadTCA('tx_dam'); t3lib_extMgm::addTCAcolumns('tx_dam', $damColumns, 1); t3lib_extMgm::addToAllTCAtypes('tx_dam', 'tx_hetools_dam_sortiernummer'); $TCA['tx_dam']['txdamInterface']['index_fieldList'] .= ',tx_hetools_dam_sortiernummer'; // Kontext-sensitive Hilfetexte ändern t3lib_extMgm::addLLrefForTCAdescr('tt_content', 'EXT:he_tools/lang/locallang_csh_tt_content.php'); if (TYPO3_MODE == 'BE') { t3lib_extMgm::addModulePath('web_txhetoolsM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/'); t3lib_extMgm::addModule('web', 'txhetoolsM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/'); }
<?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'); }