<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $tempTablesDef = array('static_countries' => array('cn_short_en' => 'cn_short_fr'), 'static_country_zones' => array('zn_name_en' => 'zn_name_fr'), 'static_currencies' => array('cu_name_en' => 'cu_name_fr', 'cu_sub_name_en' => 'cu_sub_name_fr'), 'static_languages' => array('lg_name_en' => 'lg_name_fr'), 'static_territories' => array('tr_name_en' => 'tr_name_fr')); foreach ($tempTablesDef as $tempTable => $tempFieldDef) { t3lib_div::loadTCA($tempTable); foreach ($tempFieldDef as $tempSourceField => $tempDestField) { $tempColumns = array(); $tempColumns[$tempDestField] = $TCA[$tempTable]['columns'][$tempSourceField]; $tempColumns[$tempDestField]['label'] = 'LLL:EXT:' . $_EXTKEY . '/locallang_db.xml:' . $tempTable . '_item.' . $tempDestField; t3lib_extMgm::addTCAcolumns($tempTable, $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes($tempTable, $tempDestField, '', 'after:' . $tempSourceField); } }
t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_odsosm_lon, tx_odsosm_lat', '', 'after:country'); } t3lib_div::loadTCA('tt_address'); t3lib_extMgm::addTCAcolumns('tt_address', $tempColumns, 1); if (t3lib_div::compat_version('4.3')) { t3lib_extMgm::addToAllTCAtypes('tt_address', 'tx_odsosm_lon', '', 'after:city'); t3lib_extMgm::addFieldsToAllPalettesOfField('tt_address', 'tx_odsosm_lon', 'tx_odsosm_lat'); } else { t3lib_extMgm::addToAllTCAtypes('tt_address', 'tx_odsosm_lon, tx_odsosm_lat', '', 'after:city'); } $tempColumns = array('tx_odsosm_marker' => array('exclude' => 1, 'label' => 'LLL:EXT:ods_osm/locallang_db.xml:tt_address_group.tx_odsosm_marker', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_odsosm_marker', 'size' => 1, 'minitems' => 0, 'maxitems' => 1))); t3lib_div::loadTCA('fe_groups'); t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker;;;;1-1-1'); t3lib_div::loadTCA('tt_address_group'); t3lib_extMgm::addTCAcolumns('tt_address_group', $tempColumns, 1); t3lib_extMgm::addToAllTCAtypes('tt_address_group', 'tx_odsosm_marker;;;;1-1-1'); /* -------------------------------------------------- New tables -------------------------------------------------- */ $TCA['tx_odsosm_geocache'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_geocache', 'label' => 'zip', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => '', 'default_sortby' => 'ORDER BY zip', 'delete' => 'deleted', 'rootLevel' => 1, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_geocache.png')); $TCA['tx_odsosm_layer'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_layer', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'delete' => 'deleted', 'rootLevel' => 1, 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_layer.png')); t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_marker'); $TCA['tx_odsosm_marker'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_marker', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_marker.png')); t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_track'); t3lib_extMgm::addToInsertRecords('tx_odsosm_track'); $TCA['tx_odsosm_track'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_track', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_track.png')); t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_vector'); t3lib_extMgm::addToInsertRecords('tx_odsosm_vector'); $TCA['tx_odsosm_vector'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_vector', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_vector.png')); /* --------------------------------------------------
<?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.'); } $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');
'selicon_cols' => 10, ) ), 'tx_templavoila_flex' => Array ( 'exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_flex', 'config' => Array ( 'type' => 'flex', 'ds_pointerField' => 'tx_templavoila_ds', 'ds_pointerField_searchParent' => 'pid', 'ds_pointerField_searchParent_subField' => 'tx_templavoila_next_ds', 'ds_tableField' => 'tx_templavoila_datastructure:dataprot', ) ), ); t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 1); if ($_EXTCONF['enable.']['selectDataStructure']) { if(tx_templavoila_div::convertVersionNumberToInteger(TYPO3_version) >= 4005000) { t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_ds;;;;1-1-1,tx_templavoila_to', '', 'replace:backend_layout'); t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_next_ds;;;;1-1-1,tx_templavoila_next_to', '', 'replace:backend_layout_next_level'); t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_flex;;;;1-1-1', '', 'after:title'); } else { t3lib_extMgm::addToAllTCAtypes('pages','tx_templavoila_ds;;;;1-1-1,tx_templavoila_to,tx_templavoila_next_ds;;;;1-1-1,tx_templavoila_next_to,tx_templavoila_flex;;;;1-1-1'); } if ($TCA['pages']['ctrl']['requestUpdate'] != '') { $TCA['pages']['ctrl']['requestUpdate'] .= ','; } $TCA['pages']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds,tx_templavoila_next_ds';
<?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/'); }
<?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.'); } $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 /** * 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'); }
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.'); } 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
<?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');
<?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'); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Adding Web>Info module for SEO management if (TYPO3_MODE == 'BE') { t3lib_extMgm::insertModuleFunction('web_info', 'tx_seobasics_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_seobasics_modfunc1.php', 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:moduleFunction.tx_seobasics_modfunc1', 'function', 'online'); } // Adding title tag field to pages TCA $tmpCol = array('tx_seo_titletag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.titletag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim')), 'tx_seo_canonicaltag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.canonicaltag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim'))); t3lib_extMgm::addTCAcolumns('pages', $tmpCol, 1); t3lib_extMgm::addTCAcolumns('pages_language_overlay', $tmpCol, 1); t3lib_extMgm::addToAllTCAtypes('pages', 'tx_seo_titletag;;;;, tx_seo_canonicaltag', 1, 'before:keywords'); t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_seo_titletag, tx_seo_canonicaltag, nav_title, tx_realurl_pathsegment;;;;', "4,5", 'after:subtitle'); $TCA['pages_language_overlay']['interface']['showRecordFieldList'] .= ',tx_seo_titletag, tx_seo_canonicaltag'; // Adding a static template TypoScript configuration from static/ t3lib_extMgm::addStaticFile($_EXTKEY, 'static', 'Metatags and XML Sitemap');
<?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.'); } 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', 'HR Interactive SEO'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Robots', 'Generate a robots.txt'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Sitemap', 'Generate a sitemap.xml'); /** * Add the new columns to the pages TCA */ $tmp_hriseo_columns = (include_once t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/pages.php'); // add to TCA t3lib_div::loadTCA('pages'); t3lib_extMgm::addTCAcolumns('pages', $tmp_hriseo_columns, 1); // add to TCA::ctrl section $TCA['pages']['columns'][$TCA['pages']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:hriseo/Resources/Private/Language/locallang_db.xml:tx_hriseo.title', 'Tx_Hriseo_Pages'); // add editing tab to types:1 (pages does only have one type..) $TCA['pages']['types']['1']['showitem'] = $TCA['pages']['types']['1']['showitem']; $TCA['pages']['types']['1']['showitem'] .= ',--div--;LLL:EXT:hriseo/Resources/Private/Language/locallang_db.xml:tx_hriseo.title,'; $TCA['pages']['types']['1']['showitem'] .= 'tx_hriseo_changefreq, tx_hriseo_priority';
<?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") {
/** * 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); } }
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,'); }
<?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'); */
<?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.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, '', 'test'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'temp'); t3lib_extMgm::addLLrefForTCAdescr('tx_temp_domain_model_address', 'EXT:temp/Resources/Private/Language/locallang_csh_tx_temp_domain_model_address.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_temp_domain_model_address'); $TCA['tx_temp_domain_model_address'] = array('ctrl' => array('title' => 'LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_address', '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,static_country,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Address.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_temp_domain_model_address.gif')); $tmp_temp_columns = array('name' => array('exclude' => 0, 'label' => 'LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_staticcountry.name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim'))); $tmp_temp_columns['address'] = array('config' => array('type' => 'passthrough')); t3lib_extMgm::addTCAcolumns('static_countries', $tmp_temp_columns); $TCA['static_countries']['columns'][$TCA['static_countries']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:static_countries.tx_extbase_type.Tx_Temp_StaticCountry', 'Tx_Temp_StaticCountry'); $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] = $TCA['static_countries']['types']['1']['showitem']; $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] .= ',--div--;LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_staticcountry,'; $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] .= 'name';
<?php if (!defined("TYPO3_MODE")) { die("Access denied."); } $tempColumns = array("tx_thexttable_tablesource" => array("exclude" => 0, "label" => "LLL:EXT:th_exttable/locallang_db.php:tt_content.tx_thexttable_tablesource", "config" => array("type" => "text", "cols" => "30", "rows" => "5", "wizards" => array("_PADDING" => 2, "example" => array("title" => "Wizard:", "type" => "script", "notNewRecords" => 0, "icon" => t3lib_extMgm::extRelPath("th_exttable") . "wizard/wizard_icon.gif", "script" => t3lib_extMgm::extRelPath("th_exttable") . "wizard/index.php"))))); t3lib_div::loadTCA("tt_content"); t3lib_extMgm::addTCAcolumns("tt_content", $tempColumns, 1); $TCA["tt_content"]["types"][$_EXTKEY . "_pi1"]["showitem"] = "CType;;4;button;1-1-1, header;;3;;2-2-2, tx_thexttable_tablesource;;;;1-1-1"; t3lib_extMgm::addPlugin(array("LLL:EXT:th_exttable/locallang_db.php:tt_content.CType_pi1", $_EXTKEY . "_pi1"), "CType"); // Add the wizard icon if (TYPO3_MODE == "BE") { $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_thexttable_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY) . "pi1/class.tx_thexttable_pi1_wizicon.php"; }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // get extension configuration $confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['jfmulticontent']); $tempColumns = array('tx_jfmulticontent_view' => array('exclude' => 1, 'onChange' => 'reload', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view', 'config' => array('type' => 'select', 'size' => 1, 'maxitems' => 1, 'default' => 'content', 'items' => array(array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.0', 'content'), array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.1', 'page'), array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.view.I.2', 'irre')), 'itemsProcFunc' => 'tx_jfmulticontent_itemsProcFunc->getViews')), 'tx_jfmulticontent_pages' => array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:page', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.pages', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('suggest' => array('type' => 'suggest')))), 'tx_jfmulticontent_irre' => array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:irre', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.irre', 'config' => array('type' => 'inline', 'foreign_table' => 'tt_content', 'foreign_field' => 'tx_jfmulticontent_irre_parentid', 'foreign_sortby' => 'sorting', 'foreign_label' => 'header', 'maxitems' => 1000, 'appearance' => array('showSynchronizationLink' => FALSE, 'showAllLocalizationLink' => FALSE, 'showPossibleLocalizationRecords' => FALSE, 'showRemovedLocalizationRecords' => FALSE, 'expandSingle' => TRUE, 'newRecordLinkAddTitle' => TRUE, 'useSortable' => TRUE), 'behaviour' => array('localizeChildrenAtParentLocalization' => 1, 'localizationMode' => 'select')))); if ($confArr["useStoragePidOnly"]) { $tempColumns['tx_jfmulticontent_contents'] = array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:,content', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents', 'config' => array('type' => 'select', 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND tt_content.pid=###STORAGE_PID### AND tt_content.hidden=0 AND tt_content.deleted=0 AND tt_content.sys_language_uid IN (0,-1) ORDER BY tt_content.uid', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('_PADDING' => 2, '_VERTICAL' => 1, 'add' => array('type' => 'script', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_add', 'icon' => 'add.gif', 'script' => 'wizard_add.php', 'params' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###', 'setValue' => 'prepend')), 'list' => array('type' => 'script', 'title' => 'List', 'icon' => 'list.gif', 'script' => 'wizard_list.php', 'params' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###')), 'edit' => array('type' => 'popup', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_edit', 'icon' => 'edit2.gif', 'script' => 'wizard_edit.php', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=600,width=800,status=0,menubar=0,scrollbars=1')))); } else { $tempColumns['tx_jfmulticontent_contents'] = array('exclude' => 1, 'displayCond' => 'FIELD:tx_jfmulticontent_view:IN:,content', 'label' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tt_content', 'size' => 12, 'minitems' => 0, 'maxitems' => 1000, 'wizards' => array('_PADDING' => 2, '_VERTICAL' => 1, 'add' => array('type' => 'script', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_add', 'icon' => 'add.gif', 'script' => 'wizard_add.php', 'params' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###', 'setValue' => 'prepend')), 'list' => array('type' => 'script', 'title' => 'List', 'icon' => 'list.gif', 'script' => 'wizard_list.php', 'params' => array('table' => 'tt_content', 'pid' => '###STORAGE_PID###')), 'edit' => array('type' => 'popup', 'title' => 'LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.tx_jfmulticontent.contents_edit', 'icon' => 'edit2.gif', 'script' => 'wizard_edit.php', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=600,width=800,status=0,menubar=0,scrollbars=1')))); } t3lib_div::loadTCA('tt_content'); t3lib_extMgm::addTCAcolumns('tt_content', $tempColumns, 1); $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'tx_jfmulticontent_view,tx_jfmulticontent_pages,tx_jfmulticontent_contents,tx_jfmulticontent_irre,pi_flexform'; // Add reload field to tt_content $TCA['tt_content']['ctrl']['requestUpdate'] .= ($TCA['tt_content']['ctrl']['requestUpdate'] ? ',' : '') . 'tx_jfmulticontent_view'; t3lib_extMgm::addPlugin(array('LLL:EXT:jfmulticontent/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'list_type'); t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/flexform_ds.xml'); if (TYPO3_MODE == 'BE') { $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_jfmulticontent_pi1_wizicon'] = t3lib_extMgm::extPath($_EXTKEY) . 'pi1/class.tx_jfmulticontent_pi1_wizicon.php'; if (!isset($TCA['tt_content']['columns']['colPos']['config']['items'][$confArr['colPosOfIrreContent']])) { // Add the new colPos to the array, only if the ID does not exist... $TCA['tt_content']['columns']['colPos']['config']['items'][$confArr['colPosOfIrreContent']] = array($_EXTKEY, $confArr['colPosOfIrreContent']); } } t3lib_extMgm::addStaticFile($_EXTKEY, 'static/', 'Multi content'); require_once t3lib_extMgm::extPath($_EXTKEY) . 'lib/class.tx_jfmulticontent_itemsProcFunc.php';
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'); }
<?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';
die('Access denied.'); } $_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");
$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 defined('TYPO3_MODE') or die('Access denied.'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'One is Enough Library'); $GLOBALS['TCA']['tx_oelib_test'] = array('ctrl' => array('title' => 'LLL:EXT:oelib/Resources/Private/Language/locallang_db.xml:tx_oelib_test', 'readOnly' => 1, 'adminOnly' => 1, 'rootLevel' => 1, 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => FALSE, 'default_sortby' => 'ORDER BY uid', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Test.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/Test.gif')); $GLOBALS['TCA']['tx_oelib_testchild'] = array('ctrl' => array('title' => 'LLL:EXT:oelib/Resources/Private/Language/locallang_db.xml:tx_oelib_test', 'readOnly' => 1, 'adminOnly' => 1, 'rootLevel' => 1, 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => FALSE, 'default_sortby' => 'ORDER BY uid', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/TestChild.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/Test.gif')); t3lib_extMgm::addTCAcolumns('fe_users', array('tx_oelib_is_dummy_record' => array()));