本文整理汇总了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManagementUtility::addTCAcolumns方法的具体用法?PHP ExtensionManagementUtility::addTCAcolumns怎么用?PHP ExtensionManagementUtility::addTCAcolumns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\ExtensionManagementUtility
的用法示例。
在下文中一共展示了ExtensionManagementUtility::addTCAcolumns方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deactivateDeletedFlag
/**
* returns the value of [TCA][$tableName][ctrl][delete] to reset the field later on with the activateDeletedFlag
*
* @param $tableName
* @param null $columnConfiguration
*
* @return string
*/
public function deactivateDeletedFlag($tableName)
{
$deleteField = $GLOBALS['TCA'][$tableName]['ctrl']['delete'];
$GLOBALS['TCA'][$tableName]['ctrl']['delete'] = '';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($tableName, $this->deletedColumnConfiguration, 1);
return $deleteField;
}
示例2: array
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi3/static/', 'WEC Table Map');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi2/static/', 'WEC Frontend User Map');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'pi1/static/', 'WEC Simple Map');
$TCA['tx_wecmap_external'] = array('ctrl' => array('title' => 'LLL:EXT:wec_map/locallang_db.xml:tx_wecmap_external', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'tca.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/icon_tx_wecmap_external_resource.gif'), 'feInterface' => array('fe_admin_fieldList' => 'title, url'));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_wecmap_external');
/* Define the address related fields for a frontend user */
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('sr_feuser_register')) {
$TCA['fe_users']['ctrl']['EXT']['wec_map'] = array('isMappable' => 1, 'addressFields' => array('street' => 'address', 'city' => 'city', 'state' => 'zone', 'zip' => 'zip', 'country' => 'static_info_country'));
} else {
$TCA['fe_users']['ctrl']['EXT']['wec_map'] = array('isMappable' => 1, 'addressFields' => array('street' => 'address', 'city' => 'city', 'state' => '', 'zip' => 'zip', 'country' => 'country'));
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_address')) {
$TCA['tt_address']['ctrl']['EXT']['wec_map'] = array('isMappable' => 1, 'addressFields' => array('street' => 'address', 'city' => 'city', 'state' => 'region', 'zip' => 'zip', 'country' => 'country'));
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('nn_address')) {
$TCA['tx_nnaddress_domain_model_address']['ctrl']['EXT']['wec_map'] = array('isMappable' => 1, 'addressFields' => array('street' => 'street', 'city' => 'city', 'state' => 'region', 'zip' => 'zip', 'country' => 'country'));
}
/* If we want to show a map in frontend user records, add it to the TCA */
if (tx_wecmap_backend::getExtConf('feUserRecordMap')) {
$mapTCA = array('tx_wecmap_map' => array('exclude' => 1, 'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_maplabel', 'config' => array('type' => 'passthrough', 'form_type' => 'user', 'userFunc' => 'tx_wecmap_backend->drawMap')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $mapTCA, 1);
$TCA['fe_users']['interface']['showRecordFieldList'] .= ',tx_wecmap_map';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', '--div--;LLL:EXT:wec_map/locallang_db.xml:berecord_maplabel,tx_wecmap_map');
}
/* If we want to show the geocoding status in frontend user records, add it to the TCA */
if (tx_wecmap_backend::getExtConf('geocodingStatus')) {
$geocodeTCA = array('tx_wecmap_geocode' => array('exclude' => 1, 'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_geocodelabel', 'config' => array('type' => 'passthrough', 'form_type' => 'user', 'userFunc' => 'tx_wecmap_backend->checkGeocodeStatus')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $geocodeTCA, 1);
$TCA['fe_users']['interface']['showRecordFieldList'] .= ',tx_wecmap_geocode';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_wecmap_geocode');
}
示例3: array
<?php
$tempColumns = array('tx_gridelements_backend_layout' => array('exclude' => 1, 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tt_content.tx_gridelements_backend_layout', 'config' => array('type' => 'select', 'itemsProcFunc' => 'GridElementsTeam\\Gridelements\\Backend\\TtContent->layoutItemsProcFunc', 'size' => 1, 'selicon_cols' => 9, 'maxitems' => 1, 'default' => '')), 'tx_gridelements_children' => array('exclude' => 1, 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tt_content.tx_gridelements_children', 'config' => array('type' => 'inline', 'appearance' => array('levelLinksPosition' => 'top', 'showPossibleLocalizationRecords' => true, 'showRemovedLocalizationRecords' => true, 'showAllLocalizationLink' => true, 'showSynchronizationLink' => true, 'enabledControls' => array('info' => true, 'new' => false, 'dragdrop' => false, 'sort' => false, 'hide' => true, 'delete' => true, 'localize' => true)), 'inline' => array('inlineNewButtonStyle' => 'display: inline-block;'), 'behaviour' => array('localizationMode' => 'select', 'localizeChildrenAtParentLocalization' => true), 'foreign_table' => 'tt_content', 'foreign_field' => 'tx_gridelements_container', 'foreign_record_defaults' => array('colPos' => -1), 'foreign_sortby' => 'sorting', 'size' => 5, 'autoSizeMax' => 20)), 'tx_gridelements_container' => array('exclude' => 1, 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tt_content.tx_gridelements_container', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND (tt_content.sys_language_uid = ###REC_FIELD_sys_language_uid### OR tt_content.sys_language_uid = -1) AND tt_content.pid=###CURRENT_PID### AND tt_content.CType=\'gridelements_pi1\' AND (tt_content.uid != ###THIS_UID###) AND (tt_content.tx_gridelements_container != ###THIS_UID### OR tt_content.tx_gridelements_container=0) ORDER BY tt_content.header, tt_content.uid', 'dontRemapTablesOnCopy' => 'tt_content', 'itemsProcFunc' => 'GridElementsTeam\\Gridelements\\Backend\\TtContent->containerItemsProcFunc', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_gridelements_columns' => array('exclude' => 1, 'label' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tt_content.tx_gridelements_columns', 'config' => array('type' => 'select', 'itemsProcFunc' => 'GridElementsTeam\\Gridelements\\Backend\\TtContent->columnsItemsProcFunc', 'size' => 1, 'maxitems' => 1)));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns);
$GLOBALS['TCA']['tt_content']['ctrl']['requestUpdate'] .= ',tx_gridelements_backend_layout,tx_gridelements_container,tx_gridelements_columns,colPos';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['gridelements_pi1'] = 'backend_layout.gif';
$GLOBALS['TCA']['tt_content']['ctrl']['useColumnsForDefaultValues'] .= ',tx_gridelements_container,tx_gridelements_columns';
$GLOBALS['TCA']['tt_content']['ctrl']['shadowColumnsForNewPlaceholders'] .= ',tx_gridelements_container,tx_gridelements_columns';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['gridelements_pi1'] = 'tcarecords-tx_gridelements_backend_layout-default';
$GLOBALS['TCA']['tt_content']['columns']['colPos']['config']['itemsProcFunc'] = 'GridElementsTeam\\Gridelements\\Backend\\ItemsProcFuncs\\ColPosList->itemsProcFunc';
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['itemsProcFunc'] = 'GridElementsTeam\\Gridelements\\Backend\\ItemsProcFuncs\\CTypeList->itemsProcFunc';
$GLOBALS['TCA']['tt_content']['columns']['sys_language_uid']['config']['itemsProcFunc'] = 'GridElementsTeam\\Gridelements\\Backend\\ItemsProcFuncs\\SysLanguageUidList->itemsProcFunc';
$GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds']['*,gridelements_pi1'] = '';
$GLOBALS['TCA']['tt_content']['columns']['records']['config']['allowed'] .= ',pages';
$GLOBALS['TCA']['tt_content']['types']['gridelements_pi1']['showitem'] = '
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
tx_gridelements_backend_layout,
pi_flexform,
tx_gridelements_children,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
media,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended,
--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category,
categories
';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'recursive', 'shortcut', 'after:records');
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_groups', array('tx_fluidcontent_allowedfluidcontent' => array('exclude' => 0, 'label' => 'LLL:EXT:fluidcontent/Resources/Private/Language/locallang.xlf:be_groups.tx_fluidcontent_allowedfluidcontent', 'config' => array('type' => 'select', 'renderType' => 'selectCheckBox', 'items' => array())), 'tx_fluidcontent_deniedfluidcontent' => array('exclude' => 0, 'label' => 'LLL:EXT:fluidcontent/Resources/Private/Language/locallang.xlf:be_groups.tx_fluidcontent_deniedfluidcontent', 'config' => array('type' => 'select', 'renderType' => 'selectCheckBox', 'items' => array()))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_groups', 'tx_fluidcontent_allowedfluidcontent,tx_fluidcontent_deniedfluidcontent', '0', 'after:pagetypes_select');
示例5: array
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/FlexFormPi1.xml');
/**
* Load UserFunc for FlexForm Field selection
*/
if (TYPO3_MODE == 'BE') {
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Utility/FlexFormFieldSelection.php';
}
/**
* Table configuration fe_users
*/
$tempColumns = array('gender' => array('exclude' => 0, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender', 'config' => array('type' => 'radio', 'items' => array(array('LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender.item0', '0'), array('LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.gender.item1', '1')))), 'date_of_birth' => array('exclude' => 0, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_user.dateOfBirth', 'config' => array('type' => 'input', 'size' => 10, 'max' => 20, 'eval' => 'date', 'checkbox' => '0', 'default' => '')), 'crdate' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.crdate', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'datetime', 'readOnly' => 1, 'default' => time())), 'tstamp' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.tstamp', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'datetime', 'readOnly' => 1, 'default' => time())), 'tx_femanager_confirmedbyuser' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.registrationconfirmedbyuser', 'config' => array('type' => 'check', 'default' => 0)), 'tx_femanager_confirmedbyadmin' => array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.registrationconfirmedbyadmin', 'config' => array('type' => 'check', 'default' => 0)));
$fields = 'crdate, tstamp, tx_femanager_confirmedbyuser, tx_femanager_confirmedbyadmin';
if (empty($confArr['disableLog'])) {
$tempColumns['tx_femanager_log'] = array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.log', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_femanager_domain_model_log', 'foreign_field' => 'user', 'maxitems' => 1000, 'minitems' => 0, 'appearance' => array('collapseAll' => 1, 'expandSingle' => 1)));
$fields .= ', tx_femanager_log';
}
$tempColumns['tx_femanager_changerequest'] = array('exclude' => 1, 'label' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.changerequest', 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '15', 'wrap' => 'off', 'readOnly' => 1));
$fields .= ', tx_femanager_changerequest';
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('fe_users');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'gender, date_of_birth', '', 'after:name');
if (version_compare(TYPO3_branch, '6.2', '<')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns, 1);
} else {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', '--div--;LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:fe_users.tab;;;;1-1-1, ' . $fields);
/**
* Table configuration tx_femanager_domain_model_log
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_femanager_domain_model_log');
$TCA['tx_femanager_domain_model_log'] = array('ctrl' => array('title' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_db.xlf:tx_femanager_domain_model_log', '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', 'default_sortby' => 'ORDER BY crdate DESC', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Log.php', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/Log.gif'));
示例6: array
<?php
$tempColumns = array('node_priority' => array('exclude' => 1, 'label' => 'Node Priority', 'config' => array('type' => 'input', 'size' => '7', 'eval' => 'double2')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'node_priority');
示例7: defined
<?php
defined('TYPO3_MODE') or die;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testdatahandler_element');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', array('tx_testdatahandler_select' => array('exclude' => 1, 'label' => 'DataHandler Test Select', 'config' => array('type' => 'select', 'foreign_table' => 'tx_testdatahandler_element', 'minitems' => 1, 'maxitems' => 10, 'autoSizeMax' => '10', 'default' => '')), 'tx_testdatahandler_group' => array('exclude' => 1, 'label' => 'DataHandler Test Group', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_testdatahandler_element', 'minitems' => 1, 'maxitems' => 10, 'autoSizeMax' => '10', 'default' => '')), 'tx_testdatahandler_radio' => array('exclude' => 1, 'label' => 'DataHandler Test Radio', 'config' => array('type' => 'radio', 'items' => array(array('predefined label', 'predefined value')), 'itemsProcFunc' => 'TYPO3\\TestDatahandler\\Classes\\Tca\\RadioElementItems->getItems', 'default' => ''))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', '--div--;DataHandler Test, tx_testdatahandler_select, tx_testdatahandler_group');
示例8: time
event_location,status,
--div--;' . $ll . 'label.tab.price,
price,free_of_charge,price_notice,
--div--;' . $ll . 'label.tab.registration,
--palette--;;paletteLessonRegistration,places,registration_remarks,
registration_documents,external_registration_link,
--div--;' . $ll . 'label.tab.participants,
participants,
--div--;Access,
tx_extbase_type,hidden,starttime, endtime';
$GLOBALS['TCA']['tx_t3events_domain_model_performance']['types'][$extbaseType]['showitem'] = $scheduleShowItems;
$temporaryColumns = ['participants' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.participants', 'config' => ['type' => 'inline', 'foreign_table' => 'tx_t3events_domain_model_person', 'MM' => 'tx_t3eventsreservation_performance_participants_person_mm', 'appearance' => ['levelLinksPosition' => 'none', 'enabledControls' => ['info' => FALSE, 'new' => FALSE, 'dragdrop' => FALSE, 'sort' => FALSE, 'hide' => FALSE, 'delete' => FALSE, 'localize' => FALSE]]]], 'deadline' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.deadline', 'config' => ['type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1, 'default' => time()]], 'registration_begin' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_begin', 'config' => ['type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1]], 'price' => ['exclude' => 0, 'label' => 'LLL:EXT:t3events/Resources/Private/Language/locallang_db.xml:tx_t3events_domain_model_ticketclass.price', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'double2']], 'places' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.places', 'config' => ['type' => 'input', 'size' => 4, 'eval' => 'int']], 'free_of_charge' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.free_of_charge', 'config' => ['type' => 'check', 'default' => '0']], 'registration_remarks' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_remarks', 'config' => ['type' => 'text', 'cols' => 40, 'rows' => 5, 'eval' => 'trim']], 'external_registration_link' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.external_registration_link', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'registration_documents' => ['label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_documents', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('registration_documents', ['appearance' => ['headerThumbnail' => ['width' => '100', 'height' => '100'], 'createNewRelationLinkTitle' => $ll . 'label.addDocument'], 'foreign_types' => ['0' => ['showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => ['showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => ['showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette']]], 'doc,docx,pdf')]];
// add type field if missing
if (!isset($GLOBALS['TCA']['tx_t3events_domain_model_performance']['columns']['tx_extbase_type'])) {
$temporaryColumns['tx_extbase_type'] = ['config' => ['label' => $ll . 'label.tx_extbase_type', 'type' => 'select', 'items' => [[$ll . 'label.tx_extbase_type.default', '0'], [$ll . 'label.tx_extbase_type.Tx_T3eventsReservation_Schedule', $extbaseType]]]];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'tx_extbase_type', '', 'before:hidden');
} else {
// add type item
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tx_t3events_domain_model_performance', 'tx_extbase_type', [$ll . 'label.tx_extbase_type.Tx_T3eventsReservation_Schedule', $extbaseType]);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_t3events_domain_model_performance', $temporaryColumns, TRUE);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'price', '', 'before:price_notice');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'tx_extbase_type', '', 'before:hidden');
示例9: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// TCA modification for powermail
$tempColumns = array('tx_powermailext_maxlength' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.attributes.maxlength', 'displayCond' => 'FIELD:type:IN:input,textarea,password', 'config' => array('type' => 'input', 'default' => '', 'size' => 4, 'eval' => 'int')), 'tx_powermailext_disabled' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.attributes.disabled', 'config' => array('type' => 'check', 'default' => 0)), 'tx_powermailext_readonly' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.attributes.readonly', 'config' => array('type' => 'check', 'default' => 0)), 'tx_powermailext_dependency' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext.dependency.activate', 'config' => array('type' => 'check', 'default' => 0)), 'tx_powermailext_dependency_field' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_field', 'displayCond' => 'FIELD:tx_powermailext_dependency:=:1', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:pleaseChoose', 0)), 'foreign_table' => 'tx_powermail_domain_model_fields', 'foreign_table_where' => 'AND tx_powermail_domain_model_fields.pages IN (SELECT uid FROM tx_powermail_domain_model_pages WHERE tx_powermail_domain_model_pages.forms = (SELECT forms FROM tx_powermail_domain_model_pages WHERE tx_powermail_domain_model_pages.uid = ###REC_FIELD_pages###)) AND tx_powermail_domain_model_fields.uid <> ###THIS_UID###', 'default' => 0)), 'tx_powermailext_dependency_operator' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator', 'displayCond' => 'FIELD:tx_powermailext_dependency:=:1', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:pleaseChoose', 0), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator.1', 1), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator.2', 2), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator.3', 3), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator.4', 4), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_operator.5', 5)), 'default' => 1)), 'tx_powermailext_dependency_value' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_value', 'displayCond' => 'FIELD:tx_powermailext_dependency:=:1', 'config' => array('size' => 8, 'type' => 'input', 'eval' => 'trim')), 'tx_powermailext_dependency_action' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action', 'displayCond' => 'FIELD:tx_powermailext_dependency:=:1', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:pleaseChoose', 0), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action.1', 3), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action.2', 1), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action.3', 6), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action.4', 4), array('LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency_action.5', 9)), 'default' => 0)), 'tx_powermailext_dependency_resetfield' => array('exclude' => 0, 'label' => 'LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.tx_powermailext_dependency_resetfield', 'config' => array('type' => 'check', 'default' => 0)), 'tx_extbase_type' => array('exclude' => 0, 'config' => array('type' => 'select', 'items' => array(array('Powermail Default Model', ''), array('Powermail Extended Model', 'Tx_Powermailext_Domain_Model_Field')), 'default' => 'Tx_Powermailext_Domain_Model_Field')));
// add tca columns
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_powermail_domain_model_fields', $tempColumns);
// create new palette with the fields in showitem for maxlength, disabled, readonly
$additionalAttributesPaletteIndex = max(array_keys($GLOBALS['TCA']['tx_powermail_domain_model_fields']['palettes'])) + 1;
$GLOBALS['TCA']['tx_powermail_domain_model_fields']['palettes'][$additionalAttributesPaletteIndex] = array('canNotCollapse' => 1, 'showitem' => 'tx_powermailext_disabled, tx_powermailext_readonly, tx_powermailext_maxlength');
// create new palette with the fields in showitem for dependency
$dependencyPaletteIndex = $additionalAttributesPaletteIndex + 1;
$GLOBALS['TCA']['tx_powermail_domain_model_fields']['palettes'][$dependencyPaletteIndex] = array('canNotCollapse' => 1, 'showitem' => 'tx_powermailext_dependency, tx_powermailext_dependency_field, tx_powermailext_dependency_operator, tx_powermailext_dependency_value, --linebreak--, tx_powermailext_dependency_action, tx_powermailext_dependency_resetfield');
// add the fields to all types for the powermail fields table
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_powermail_domain_model_fields', '--palette--;LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.clf:tx_powermailext_domain_model_field.attributes;' . $additionalAttributesPaletteIndex, '', 'before:mandatory');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_powermail_domain_model_fields', '--div--;LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.xlf:tx_powermailext_domain_model_field.dependency,--palette--;LLL:EXT:powermailext/Resources/Private/Language/locallang_tca.clf:tx_powermailext_domain_model_field.dependency;' . $dependencyPaletteIndex, '', 'after:own_marker_select');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_powermail_domain_model_fields', 'tx_extbase_type');
// required for extending the model
// we cant't use this since powermail 2.4 uses a different TCA type for every field type
// $GLOBALS['TCA']['tx_powermail_domain_model_fields']['ctrl']['type'] = 'tx_extbase_type';
// reload TCA form if dependency is activated
$GLOBALS['TCA']['tx_powermail_domain_model_fields']['ctrl']['requestUpdate'] .= ',tx_powermailext_dependency';
// show same fields for date as for input
$GLOBALS['TCA']['tx_powermail_domain_model_fields']['types']['date']['showitem'] = str_replace('--palette--;Layout;43', '--palette--;Layout;42', $GLOBALS['TCA']['tx_powermail_domain_model_fields']['types']['input']['showitem']);
示例10: defined
<?php
defined('TYPO3_MODE') or die;
/**
* Add extra field showinpreview and some special news controls to sys_file_reference record
*/
$newSysFileReferenceColumns = array('showinpreview' => array('exclude' => 1, 'label' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_media.showinpreview', 'config' => array('type' => 'check', 'default' => 0)));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_file_reference', $newSysFileReferenceColumns);
// add special news palette
$GLOBALS['TCA']['sys_file_reference']['palettes']['newsPalette'] = array('showitem' => 'showinpreview', 'canNotCollapse' => TRUE);
示例11: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tmp_roq_newsevent_columns = array('tx_roqnewsevent_is_event' => array('exclude' => 1, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_is_event', 'config' => array('type' => 'check', 'default' => 0)), 'tx_roqnewsevent_startdate' => array('exclude' => 1, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_startdate', 'config' => array('type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1)), 'tx_roqnewsevent_starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_starttime', 'config' => array('type' => 'input', 'size' => 4, 'eval' => 'time', 'checkbox' => 1)), 'tx_roqnewsevent_enddate' => array('exclude' => 1, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_enddate', 'config' => array('type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1)), 'tx_roqnewsevent_endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_endtime', 'config' => array('type' => 'input', 'size' => 4, 'eval' => 'time', 'checkbox' => 1)), 'tx_roqnewsevent_location' => array('exclude' => 0, 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_location', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_news_domain_model_news', $tmp_roq_newsevent_columns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_news_domain_model_news', ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,tx_roqnewsevent_is_event, tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location');
示例12:
<?php
/**
* manipulate the sys_template table.
*/
$tempColumn = ['tx_themes_skin' => ['exclude' => 1, 'label' => 'LLL:EXT:themes/Resources/Private/Language/locallang.xlf:themes', 'displayCond' => ['FIELD:root:REQ:true'], 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'size' => 1, 'maxitems' => 1, 'itemsProcFunc' => 'KayStrobach\\Themes\\Tca\\ThemeSelector->items', 'showIconTable' => 1]]];
// Add the skin selector for backend users.
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_template', $tempColumn);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_template', '--div--;Themes,tx_themes_skin');
示例13: array
<?php
defined('TYPO3_MODE') or die;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
$temporaryColumns = array('mailhash' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.mailhash', 'config' => array('type' => 'input', 'readOnly' => true)), 'activated_on' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.activated_on', 'config' => array('type' => 'input', 'readOnly' => true, 'eval' => 'datetime')), 'pseudonym' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.pseudonym', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim')), 'gender' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.gender', 'config' => array('type' => 'radio', 'items' => array(array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.gender.I.1', '1'), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.gender.I.2', '2')))), 'date_of_birth' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.date_of_birth', 'config' => array('type' => 'input', 'size' => '10', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '')), 'language' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.language', 'config' => array('type' => 'input', 'size' => '4', 'max' => '2', 'eval' => '', 'default' => '')), 'zone' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.zone', 'config' => array('type' => 'input', 'size' => '20', 'max' => '40', 'eval' => 'trim', 'default' => '')), 'timezone' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-12', -12), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-11', -11), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-10', -10), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-9.5', -9.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-9', -9), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-8', -8), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-7', -7), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-6', -6), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-5', -5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-4.5', -4.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-4', -4), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-3.5', -3.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-3', -3), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-2', -2), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.-1', -1), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.0', 0), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.1', 1), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.2', 2), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.3', 3), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.3.5', 3.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.4', 4), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.4.5', 4.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.5', 5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.5.5', 5.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.5.75', 5.75), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.6', 6), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.6.5', 6.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.7', 7), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.8', 8), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.9', 9), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.9.5', 9.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.10', 10), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.11', 11), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.11.5', 11.5), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.12', 12), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.12.75', 12.75), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.13', 13), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.timezone.I.14', 14)), 'default' => 0)), 'daylight' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.daylight', 'config' => array('type' => 'check')), 'mobilephone' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.mobilephone', 'config' => array('type' => 'input', 'size' => 20)), 'gtc' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.gtc', 'config' => array('type' => 'check')), 'privacy' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.privacy', 'config' => array('type' => 'check')), 'status' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status.I.0', '0'), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status.I.1', '1'), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status.I.2', '2'), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status.I.3', '3'), array('LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.status.I.4', '4')))), 'by_invitation' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.by_invitation', 'config' => array('type' => 'check', 'default' => '0')), 'comments' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.comments', 'config' => array('type' => 'text', 'rows' => '5', 'cols' => '48')), 'email_new' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.email_new', 'config' => array('type' => 'input', 'size' => '20', 'max' => '80', 'eval' => 'trim')), 'module_sys_dmail_newsletter' => array('label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.module_sys_dmail_newsletter', 'exclude' => '1', 'config' => array('type' => 'check')), 'module_sys_dmail_html' => array('label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.module_sys_dmail_html', 'exclude' => '1', 'config' => array('type' => 'check')));
ExtensionManagementUtility::addTCAcolumns('fe_users', $temporaryColumns);
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'gender', '', 'before:name');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'pseudonym', '', 'after:username');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'date_of_birth, language, status', '', 'after:name');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'zone, timezone, daylight', '', 'after:city');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'mobilephone', '', 'after:telephone');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'email_new', '', 'after:email');
ExtensionManagementUtility::addToAllTCAtypes('fe_users', '--div--;LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.div.registration,
mailhash, activated_on, gtc, privacy, by_invitation, comments, module_sys_dmail_html');
if (ExtensionManagementUtility::isLoaded('static_info_tables')) {
$tempColumns = array('static_info_country' => array('exclude' => 0, 'label' => 'LLL:EXT:sf_register/Resources/Private/Language/locallang_be.xml:fe_users.static_info_country', 'config' => array('type' => 'input', 'size' => '5', 'max' => '3', 'eval' => '', 'default' => '')));
ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'static_info_country', '', 'after:zone');
}
示例14: array
// ################
$tempColumns = array('tx_metaseo_pagetitle' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_rel' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle_rel', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_prefix' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle_prefix', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_suffix' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle_suffix', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_inheritance' => array('exclude' => 1, 'label' => 'LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_inheritance', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_inheritance.I.0', 0), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_inheritance.I.1', 1)), 'size' => 1, 'maxitems' => 1)), 'tx_metaseo_is_exclude' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_is_exclude', 'exclude' => 1, 'config' => array('type' => 'check')), 'tx_metaseo_canonicalurl' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_canonicalurl', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard&act=url', 'params' => array('blindLinkOptions' => 'mail'), 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')))), 'tx_metaseo_priority' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_priority', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'int')), 'tx_metaseo_change_frequency' => array('exclude' => 1, 'label' => 'LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.0', 0), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.1', 1), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.2', 2), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.3', 3), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.4', 4), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.5', 5), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.6', 6), array('LLL:EXT:metaseo/locallang_db.php:pages.tx_metaseo_change_frequency.I.7', 7)), 'size' => 1, 'maxitems' => 1)), 'tx_metaseo_geo_lat' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_geo_lat', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_geo_long' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_geo_long', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_geo_place' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_geo_place', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_geo_region' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_geo_region', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1);
// TCA Palettes
$TCA['pages']['palettes']['tx_metaseo_pagetitle'] = array('showitem' => 'tx_metaseo_pagetitle,--linebreak--,tx_metaseo_pagetitle_prefix,tx_metaseo_pagetitle_suffix,--linebreak--,tx_metaseo_inheritance', 'canNotCollapse' => 1);
$TCA['pages']['palettes']['tx_metaseo_crawler'] = array('showitem' => 'tx_metaseo_is_exclude,--linebreak--,tx_metaseo_canonicalurl', 'canNotCollapse' => 1);
$TCA['pages']['palettes']['tx_metaseo_sitemap'] = array('showitem' => 'tx_metaseo_priority,--linebreak--,tx_metaseo_change_frequency', 'canNotCollapse' => 1);
$TCA['pages']['palettes']['tx_metaseo_geo'] = array('showitem' => 'tx_metaseo_geo_lat,--linebreak--,tx_metaseo_geo_long,--linebreak--,tx_metaseo_geo_place,--linebreak--,tx_metaseo_geo_region', 'canNotCollapse' => 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_metaseo_pagetitle_rel', '1,4,7,3', 'after:title');
// Put it for standard page
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--div--;LLL:EXT:metaseo/locallang_tca.xml:pages.tab.seo;,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.pagetitle;tx_metaseo_pagetitle,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.geo;tx_metaseo_geo,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.crawler;tx_metaseo_crawler,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.sitemap;tx_metaseo_sitemap', '1,4,7,3', 'after:author_email');
// ################
// Page overlay (lang)
// ################
$tempColumns = array('tx_metaseo_pagetitle' => array('exclude' => 1, 'label' => 'LLL:EXT:metaseo/locallang_db.xml:pages_language_overlay.tx_metaseo_pagetitle', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_rel' => array('exclude' => 1, 'label' => 'LLL:EXT:metaseo/locallang_db.xml:pages_language_overlay.tx_metaseo_pagetitle_rel', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_prefix' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle_prefix', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_pagetitle_suffix' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_pagetitle_suffix', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim')), 'tx_metaseo_canonicalurl' => array('label' => 'LLL:EXT:metaseo/locallang_db.xml:pages.tx_metaseo_canonicalurl', 'exclude' => 1, 'config' => array('type' => 'input', 'size' => '30', 'max' => '255', 'checkbox' => '', 'eval' => 'trim', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard&act=url', 'params' => array('blindLinkOptions' => 'mail'), 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')))));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $tempColumns, 1);
// TCA Palettes
$TCA['pages_language_overlay']['palettes']['tx_metaseo_pagetitle'] = array('showitem' => 'tx_metaseo_pagetitle,--linebreak--,tx_metaseo_pagetitle_prefix,tx_metaseo_pagetitle_suffix', 'canNotCollapse' => 1);
$TCA['pages_language_overlay']['palettes']['tx_metaseo_crawler'] = array('showitem' => 'tx_metaseo_canonicalurl', 'canNotCollapse' => 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', 'tx_metaseo_pagetitle_rel', '', 'after:title');
// Put it for standard page overlay
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', '--div--;LLL:EXT:metaseo/locallang_tca.xml:pages.tab.seo;,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.pagetitle;tx_metaseo_pagetitle,--palette--;LLL:EXT:metaseo/locallang_tca.xml:pages.palette.crawler;tx_metaseo_crawler', '', 'after:author_email');
// ################
// Domains
// ################
/*
$tempColumns = array (
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_domain',$tempColumns,1);
*/
示例15: defined
<?php
/**
* Geolocation contexts: Database table backend configuration
*
* PHP version 5
*
* @category TYPO3-Extensions
* @package Contexts
* @subpackage Geolocation
* @author Christian Weiske <christian.weiske@netresearch.de>
* @license http://opensource.org/licenses/gpl-license GPLv2 or later
* @link http://github.com/netresearch/contexts_geolocation
*/
defined('TYPO3_MODE') or die('Access denied.');
if (TYPO3_MODE === 'BE') {
// All other modes did load it already
include_once t3lib_extMgm::extPath($_EXTKEY) . 'ext_contexts.php';
}
t3lib_extMgm::addPlugin(array('LLL:EXT:contexts_geolocation/Resources/Private/Language/locallang_db.xml:tt_content.list_type_contextsgeolocation_position', $_EXTKEY . '_position'), 'list_type');
$LanguagesToContext = array('tx_contexts_geolocation_languages' => array('exclude' => 0, 'label' => 'Associated Languages', 'config' => array('type' => 'select', 'foreign_table' => 'sys_language', 'minitems' => 0, 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 0)));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_contexts_contexts', $LanguagesToContext);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_contexts_contexts', 'tx_contexts_geolocation_languages', '', 'after:alias');