Example #1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Sign up TYPO3 slack');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 't3o_slack');
t3lib_extMgm::addLLrefForTCAdescr('tx_t3oslack_domain_model_slackuser', 'EXT:t3o_slack/Resources/Private/Language/locallang_csh_tx_t3oslack_domain_model_slackuser.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_t3oslack_domain_model_slackuser');
$TCA['tx_t3oslack_domain_model_slackuser'] = array('ctrl' => array('title' => 'LLL:EXT:t3o_slack/Resources/Private/Language/locallang_db.xml:tx_t3oslack_domain_model_slackuser', 'label' => 'uid', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', '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' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/SlackUser.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3oslack_domain_model_slackuser.gif'));
Example #2
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Add static template for Click-enlarge rendering
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
// Add acronyms table
$TCA['tx_rtehtmlarea_acronym'] = array('ctrl' => array('title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym', 'label' => 'term', 'default_sortby' => 'ORDER BY term', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'extensions/Acronym/skin/images/acronym.gif'));
t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
// Add contextual help files
$htmlAreaRteContextHelpFiles = array('General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xml', 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xml', 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xml', 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xml', 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml', 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xml');
foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
    t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
}
unset($htmlAreaRteContextHelpFiles);
// Extend TYPO3 User Settings Configuration
if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
    $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array('rteWidth' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth', 'csh' => 'xEXT_rtehtmlarea_General:rteWidth'), 'rteHeight' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteHeight'), 'rteResize' => array('type' => 'check', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize', 'csh' => 'xEXT_rtehtmlarea_General:rteResize'), 'rteMaxHeight' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'), 'rteCleanPasteBehaviour' => array('type' => 'select', 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour', 'items' => array('plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText', 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure', 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat'), 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour')));
    $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
}
Example #3
0
//			'labels' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/locallang_mod.xml'
//		)
//	);
//
//}
// default typoscript
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/main', 'Simple calendar using Extbase');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/customaddress', 'Use custom address extension');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/ics', 'ICS configuration');
// init flexform for plugin
$TCA['tt_content']['types']['list']['subtypes_addlist']['czsimplecal_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_excludelist']['czsimplecal_pi1'] = 'layout,select_key';
t3lib_extMgm::addPiFlexFormValue('czsimplecal_pi1', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform.xml');
// hook into the post storing process to update the index of recurring events
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:' . $_EXTKEY . '/Legacy/class.tx_czsimplecal_getDatamapHook.php:tx_czsimplecal_getDatamapHook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:' . $_EXTKEY . '/Legacy/class.tx_czsimplecal_getCmdmapHook.php:tx_czsimplecal_getCmdmapHook';
// TCA config
t3lib_extMgm::addLLrefForTCAdescr('tx_czsimplecal_domain_model_event', 'EXT:cz_simple_cal/Resources/Private/Language/locallang_csh_tx_czsimplecal_domain_model_event.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_czsimplecal_domain_model_event');
$TCA['tx_czsimplecal_domain_model_event'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_event', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'default_sortby' => 'ORDER BY start_day DESC, start_time DESC', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dividers2tabs' => 1, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Event.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_event.gif'));
$TCA['tx_czsimplecal_domain_model_eventindex'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_event', 'label' => '', 'hideTable' => true, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/EventIndex.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_event_index.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_czsimplecal_domain_model_exception', 'EXT:cz_simple_cal/Resources/Private/Language/locallang_csh_tx_czsimplecal_domain_model_exception.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_czsimplecal_domain_model_exception');
$TCA['tx_czsimplecal_domain_model_exception'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_exception', 'label' => 'title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Exception.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_exception.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_czsimplecal_domain_model_exceptiongroup', 'EXT:cz_simple_cal/Resources/Private/Language/locallang_csh_tx_czsimplecal_domain_model_exceptiongroup.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_czsimplecal_domain_model_exceptiongroup');
$TCA['tx_czsimplecal_domain_model_exceptiongroup'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_exceptiongroup', 'label' => 'title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/ExceptionGroup.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_exceptiongroup.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_czsimplecal_domain_model_category', 'EXT:cz_simple_cal/Resources/Private/Language/locallang_csh_tx_czsimplecal_domain_model_category.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_czsimplecal_domain_model_category');
$TCA['tx_czsimplecal_domain_model_category'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_category', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Category.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_category.gif'));
$TCA['tx_czsimplecal_domain_model_address'] = array('ctrl' => array('title' => 'LLL:EXT:cz_simple_cal/Resources/Private/Language/locallang_db.xml:tx_czsimplecal_domain_model_address', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Address.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_czsimplecal_domain_model_address.gif'));
Example #4
0
    die('Access denied.');
}
// avoid that this block is loaded in the frontend or within the upgrade-wizards
if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    /**
     * Registers a Backend Module
     */
    Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'workspaces', 'before:info', array('Review' => 'index,fullIndex,singleIndex', 'Preview' => 'index,newPage'), array('access' => 'user,group', 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml', 'navigationComponentId' => 'typo3-pagetree'));
    // register ExtDirect
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:tx_Workspaces_ExtDirect_Server';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:tx_Workspaces_ExtDirect_ActionHandler';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectMassActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:tx_Workspaces_ExtDirect_MassActionHandler';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Ajax.ExtDirect.ToolbarMenu'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:tx_Workspaces_ExtDirect_ToolbarMenu';
    // register the reports statusprovider
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'Tx_Workspaces_Reports_StatusProvider';
}
/**
 * Table "sys_workspace":
 */
$TCA['sys_workspace'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace', 'adminOnly' => 1, 'rootLevel' => 1, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true, 'dividers2tabs' => true));
/**
 * Table "sys_workspace_stage":
 * Defines single custom stages which are related to sys_workspace table to create complex working processes
 * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
 */
$TCA['sys_workspace_stage'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'sortby' => 'sorting', 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage', 'adminOnly' => 1, 'rootLevel' => 1, 'hideTable' => TRUE, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true));
// todo move icons to Core sprite or keep them here and remove the todo note ;)
$icons = array('sendtonextstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png', 'sendtoprevstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png', 'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png');
t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
Example #5
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Petition', 'Petitions Form');
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_petition';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_default.xml');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'List', 'Petitions List');
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_list';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Petition');
t3lib_extMgm::addLLrefForTCAdescr('tx_petition_domain_model_petitionsentry', 'EXT:petition/Resources/Private/Language/locallang_csh_tx_petition_domain_model_petitionsentry.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_petition_domain_model_petitionsentry');
$TCA['tx_petition_domain_model_petitionsentry'] = array('ctrl' => array('title' => 'LLL:EXT:petition/Resources/Private/Language/locallang_db.xml:tx_petition_domain_model_petitionsentry', 'label' => 'firstname', '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' => 'firstname,lastname,emailadress,country,town,zip,street,petition,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/PetitionsEntry.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_petition_domain_model_petitionsentry.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_petition_domain_model_petition', 'EXT:petition/Resources/Private/Language/locallang_csh_tx_petition_domain_model_petition.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_petition_domain_model_petition');
$TCA['tx_petition_domain_model_petition'] = array('ctrl' => array('title' => 'LLL:EXT:petition/Resources/Private/Language/locallang_db.xml:tx_petition_domain_model_petition', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'petitionsentries' => 'petitionsentries', '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,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Petition.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_petition_domain_model_petition.gif'));
Example #6
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Flatmgrpay', 'Flat Manager Payment Solution');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Flat Manager Payment');
t3lib_extMgm::addLLrefForTCAdescr('tx_flatmgrpay_domain_model_booking', 'EXT:flatmgrpay/Resources/Private/Language/locallang_csh_tx_flatmgrpay_domain_model_booking.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_flatmgrpay_domain_model_booking');
$TCA['tx_flatmgrpay_domain_model_booking'] = array('ctrl' => array('title' => 'LLL:EXT:flatmgrpay/Resources/Private/Language/locallang_db.xml:tx_flatmgrpay_domain_model_booking', 'label' => 'name', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Booking.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_flatmgrpay_domain_model_booking.gif'));
<?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.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'List', 'Association member list');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TYPO3 Membership');
t3lib_extMgm::addLLrefForTCAdescr('tx_t3omembership_domain_model_member', 'EXT:t3o_membership/Resources/Private/Language/locallang_csh_tx_t3omembership_domain_model_member.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_t3omembership_domain_model_member');
$TCA['tx_t3omembership_domain_model_member'] = array('ctrl' => array('title' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xml:tx_t3omembership_domain_model_member', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => 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' => 'name,external_id,end_date,address,zip,city,country,email,url,membership,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Member.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3omembership_domain_model_member.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_t3omembership_domain_model_membership', 'EXT:t3o_membership/Resources/Private/Language/locallang_csh_tx_t3omembership_domain_model_membership.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_t3omembership_domain_model_membership');
$TCA['tx_t3omembership_domain_model_membership'] = array('ctrl' => array('title' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xml:tx_t3omembership_domain_model_membership', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => 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' => 'name,logo,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Membership.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3omembership_domain_model_membership.gif'));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Test', 'test');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Test');
t3lib_extMgm::addLLrefForTCAdescr('tx_test_domain_model_test', 'EXT:test/Resources/Private/Language/locallang_csh_tx_test_domain_model_test.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_test_domain_model_test');
$TCA['tx_test_domain_model_test'] = array('ctrl' => array('title' => 'LLL:EXT:test/Resources/Private/Language/locallang_db.xml:tx_test_domain_model_test', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', '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,videos,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Test.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_test_domain_model_test.gif'));
Example #10
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Spam Remover Plugin');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Spam Remover for typo3org');
t3lib_extMgm::addLLrefForTCAdescr('tx_t3orgspamremover_domain_model_spamreport', 'EXT:t3org_spamremover/Resources/Private/Language/locallang_csh_tx_t3orgspamremover_domain_model_spamreport.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_t3orgspamremover_domain_model_spamreport');
$TCA['tx_t3orgspamremover_domain_model_spamreport'] = array('ctrl' => array('title' => 'LLL:EXT:t3org_spamremover/Resources/Private/Language/locallang_db.xml:tx_t3orgspamremover_domain_model_spamreport', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,description,reporter,spammer,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/SpamReport.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3orgspamremover_domain_model_spamreport.gif'));
t3lib_div::loadTCA('fe_users');
$tempColumns = array('tx_t3orgspamremover_spam' => array('exclude' => 0, 'label' => 'Reported Spam', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_t3orgspamremover_domain_model_spamreport', 'appearace' => array('collapseAll' => TRUE), 'foreign_field' => 'spammer')));
t3lib_extMgm::addTCAcolumns("fe_users", $tempColumns, TRUE);
t3lib_extMgm::addToAllTCAtypes('fe_users', '--div--;Reported Spam,tx_t3orgspamremover_spam');
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');
}
Example #12
0
<?php

# TYPO3 SVN ID: $Id: ext_tables.php 10211 2011-01-21 14:55:53Z flyguide $
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::addModule('web', 'layout', 'top', t3lib_extMgm::extPath($_EXTKEY) . 'layout/');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xml');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xml');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_cms_webinfo_page', t3lib_extMgm::extPath($_EXTKEY) . 'web_info/class.tx_cms_webinfo.php', 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_cms_webinfo_lang', t3lib_extMgm::extPath($_EXTKEY) . 'web_info/class.tx_cms_webinfo_lang.php', 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_lang');
}
// Add allowed records to pages:
t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
// ******************************************************************
// This is the standard TypoScript content table, tt_content
// ******************************************************************
$TCA['tt_content'] = array('ctrl' => array('label' => 'header', 'label_alt' => 'subheader,bodytext', 'sortby' => 'sorting', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content', 'delete' => 'deleted', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'type' => 'CType', 'hideAtCopy' => true, 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'copyAfterDuplFields' => 'colPos,sys_language_uid', 'useColumnsForDefaultValues' => 'colPos,sys_language_uid', 'shadowColumnsForNewPlaceholders' => 'colPos', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'typeicon_column' => 'CType', 'typeicon_classes' => array('header' => 'mimetypes-x-content-header', 'textpic' => 'mimetypes-x-content-text-picture', 'image' => 'mimetypes-x-content-image', 'bullets' => 'mimetypes-x-content-list-bullets', 'table' => 'mimetypes-x-content-table', 'splash' => 'mimetypes-x-content-splash', 'uploads' => 'mimetypes-x-content-list-files', 'multimedia' => 'mimetypes-x-content-multimedia', 'media' => 'mimetypes-x-content-multimedia', 'menu' => 'mimetypes-x-content-menu', 'list' => 'mimetypes-x-content-plugin', 'mailform' => 'mimetypes-x-content-form', 'search' => 'mimetypes-x-content-form-search', 'login' => 'mimetypes-x-content-login', 'shortcut' => 'mimetypes-x-content-link', 'script' => 'mimetypes-x-content-script', 'div' => 'mimetypes-x-content-divider', 'html' => 'mimetypes-x-content-html', 'text' => 'mimetypes-x-content-text', 'default' => 'mimetypes-x-content-text'), 'typeicons' => array('header' => 'tt_content_header.gif', 'textpic' => 'tt_content_textpic.gif', 'image' => 'tt_content_image.gif', 'bullets' => 'tt_content_bullets.gif', 'table' => 'tt_content_table.gif', 'splash' => 'tt_content_news.gif', 'uploads' => 'tt_content_uploads.gif', 'multimedia' => 'tt_content_mm.gif', 'media' => 'tt_content_mm.gif', 'menu' => 'tt_content_menu.gif', 'list' => 'tt_content_list.gif', 'mailform' => 'tt_content_form.gif', 'search' => 'tt_content_search.gif', 'login' => 'tt_content_login.gif', 'shortcut' => 'tt_content_shortcut.gif', 'script' => 'tt_content_script.gif', 'div' => 'tt_content_div.gif', 'html' => 'tt_content_html.gif'), 'thumbnail' => 'image', 'requestUpdate' => 'list_type,rte_enabled', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_tt_content.php', 'dividers2tabs' => 1));
// ******************************************************************
// fe_users
// ******************************************************************
$TCA['fe_users'] = array('ctrl' => array('label' => 'username', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'disable', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'typeicon_classes' => array('default' => 'status-user-frontend'), 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1), 'feInterface' => array('fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company'));
// ******************************************************************
// fe_groups
// ******************************************************************
$TCA['fe_groups'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'enablecolumns' => array('disabled' => 'hidden'), 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups', 'typeicon_classes' => array('default' => 'status-user-group-frontend'), 'useColumnsForDefaultValues' => 'lockToDomain', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1));
// ******************************************************************
// sys_domain
// ******************************************************************
$TCA['sys_domain'] = array('ctrl' => array('label' => 'domainName', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain', 'iconfile' => 'domain.gif', 'enablecolumns' => array('disabled' => 'hidden'), 'typeicon_classes' => array('default' => 'mimetypes-x-content-domain'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php'));
Example #13
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Youtube API');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Youtube API');
//$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
//t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_youtubeapi_domain_model_video', 'EXT:youtubeapi/Resources/Private/Language/locallang_csh_tx_youtubeapi_domain_model_video.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_youtubeapi_domain_model_video');
$TCA['tx_youtubeapi_domain_model_video'] = array('ctrl' => array('title' => 'LLL:EXT:youtubeapi/Resources/Private/Language/locallang_db.xml:tx_youtubeapi_domain_model_video', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Video.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_youtubeapi_domain_model_video.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_youtubeapi_domain_model_feed', 'EXT:youtubeapi/Resources/Private/Language/locallang_csh_tx_youtubeapi_domain_model_feed.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_youtubeapi_domain_model_feed');
$TCA['tx_youtubeapi_domain_model_feed'] = array('ctrl' => array('title' => 'LLL:EXT:youtubeapi/Resources/Private/Language/locallang_db.xml:tx_youtubeapi_domain_model_feed', 'label' => 'url', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Feed.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_youtubeapi_domain_model_feed.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_youtubeapi_domain_model_user', 'EXT:youtubeapi/Resources/Private/Language/locallang_csh_tx_youtubeapi_domain_model_user.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_youtubeapi_domain_model_user');
$TCA['tx_youtubeapi_domain_model_user'] = array('ctrl' => array('title' => 'LLL:EXT:youtubeapi/Resources/Private/Language/locallang_db.xml:tx_youtubeapi_domain_model_user', 'label' => 'username', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/User.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_youtubeapi_domain_model_user.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_youtubeapi_domain_model_comment', 'EXT:youtubeapi/Resources/Private/Language/locallang_csh_tx_youtubeapi_domain_model_comment.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_youtubeapi_domain_model_comment');
$TCA['tx_youtubeapi_domain_model_comment'] = array('ctrl' => array('title' => 'LLL:EXT:youtubeapi/Resources/Private/Language/locallang_db.xml:tx_youtubeapi_domain_model_comment', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Comment.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_youtubeapi_domain_model_comment.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_youtubeapi_domain_model_assignment', 'EXT:youtubeapi/Resources/Private/Language/locallang_csh_tx_youtubeapi_domain_model_assignment.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_youtubeapi_domain_model_assignment');
$TCA['tx_youtubeapi_domain_model_assignment'] = array('ctrl' => array('title' => 'LLL:EXT:youtubeapi/Resources/Private/Language/locallang_db.xml:tx_youtubeapi_domain_model_assignment', 'label' => 'user', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Assignment.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_youtubeapi_domain_model_assignment.gif'));
// Adding FlexForm
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
Example #14
0
    tx_dam::register_action('tx_dam_action_cmSubFile', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_cmSubFile');
    tx_dam::register_action('tx_dam_action_revertRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_revertRec');
    tx_dam::register_action('tx_dam_action_hideRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_hideRec');
    tx_dam::register_action('tx_dam_action_renameFileRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_renameFileRec');
    tx_dam::register_action('tx_dam_action_replaceFileRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_replaceFileRec');
    tx_dam::register_action('tx_dam_action_deleteRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_deleteRec');
    #	tx_dam::register_action ('tx_dam_action_deleteQuickRec',  'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_deleteQuickRec');
    tx_dam::register_action('tx_dam_action_lockWarningRec', 'EXT:dam/components/class.tx_dam_actionsRecord.php:&tx_dam_action_lockWarningRec');
    tx_dam::register_action('tx_dam_multiaction_hideRec', 'EXT:dam/components/class.tx_dam_multiActionsRecord.php:&tx_dam_multiaction_hideRec');
    tx_dam::register_action('tx_dam_multiaction_unHideRec', 'EXT:dam/components/class.tx_dam_multiActionsRecord.php:&tx_dam_multiaction_unHideRec');
    tx_dam::register_action('tx_dam_multiaction_copyRec', 'EXT:dam/components/class.tx_dam_multiActionsRecord.php:&tx_dam_multiaction_copyRec');
    tx_dam::register_action('tx_dam_multiaction_moveRec', 'EXT:dam/components/class.tx_dam_multiActionsRecord.php:&tx_dam_multiaction_moveRec');
    tx_dam::register_action('tx_dam_multiaction_deleteRec', 'EXT:dam/components/class.tx_dam_multiActionsRecord.php:&tx_dam_multiaction_deleteRec');
    tx_dam::register_action('tx_dam_multiaction_copyFile', 'EXT:dam/components/class.tx_dam_multiActionsFile.php:&tx_dam_multiaction_copyFile');
    tx_dam::register_action('tx_dam_multiaction_moveFile', 'EXT:dam/components/class.tx_dam_multiActionsFile.php:&tx_dam_multiaction_moveFile');
    tx_dam::register_action('tx_dam_multiaction_deleteFile', 'EXT:dam/components/class.tx_dam_multiActionsFile.php:&tx_dam_multiaction_deleteFile');
    tx_dam::register_previewer('tx_dam_previewerImage', 'EXT:dam/components/class.tx_dam_previewerImage.php:&tx_dam_previewerImage');
    tx_dam::register_previewer('tx_dam_previewerMP3', 'EXT:dam/components/class.tx_dam_previewerMP3.php:&tx_dam_previewerMP3');
    tx_dam::register_editor('tx_dam_edit_text', 'EXT:dam/mod_edit/class.tx_dam_edit_text.php:&tx_dam_edit_text');
}
tx_dam::register_mediaTable('tx_dam');
#t3lib_extMgm::addToInsertRecords('tx_dam');
t3lib_extMgm::addLLrefForTCAdescr('tx_dam', 'EXT:dam/locallang_csh_dam.xml');
$TCA['tx_dam'] = array('ctrl' => array('title' => 'LLL:EXT:dam/locallang_db.xml:tx_dam_item', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'media_type', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'versioningWS' => true, 'shadowColumnsForNewPlaceholders' => 'sys_language_uid,l18n_parent,media_type,file_type,file_name,file_path,file_mime_type,file_mime_subtype', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'useColumnsForDefaultValues' => '', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'dividers2tabs' => '1', 'typeicon_column' => 'media_type', 'typeicons' => array('0' => PATH_txdam_rel . 'i/18/mtype_undefined.gif', '1' => PATH_txdam_rel . 'i/18/mtype_text.gif', '2' => PATH_txdam_rel . 'i/18/mtype_image.gif', '3' => PATH_txdam_rel . 'i/18/mtype_audio.gif', '4' => PATH_txdam_rel . 'i/18/mtype_video.gif', '5' => PATH_txdam_rel . 'i/18/mtype_interactive.gif', '6' => PATH_txdam_rel . 'i/18/mtype_service.gif', '7' => PATH_txdam_rel . 'i/18/mtype_font.gif', '8' => PATH_txdam_rel . 'i/18/mtype_model.gif', '9' => PATH_txdam_rel . 'i/18/mtype_dataset.gif', '10' => PATH_txdam_rel . 'i/18/mtype_collection.gif', '11' => PATH_txdam_rel . 'i/18/mtype_software.gif', '12' => PATH_txdam_rel . 'i/18/mtype_application.gif'), 'dynamicConfigFile' => PATH_txdam . 'tca.php', 'iconfile' => PATH_txdam_rel . 'icon_tx_dam.gif'), 'feInterface' => array('fe_admin_fieldList' => 'hidden, starttime, endtime, fe_group, media_type, title, file_type'), 'txdamInterface' => array('index_fieldList' => 'title,keywords,description,caption,alt_text,file_orig_location,file_orig_loc_desc,ident,creator,publisher,copyright,instructions,date_cr,date_mod,loc_desc,loc_country,loc_city,language,category', 'info_fieldList_add' => '', 'info_displayFields_isNonEditable' => 'media_type,thumb,file_usage'));
tx_dam::register_mediaTable('tx_dam_cat');
$TCA['tx_dam_cat'] = array('ctrl' => array('title' => 'LLL:EXT:dam/locallang_db.xml:tx_dam_cat_item', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'default_sortby' => 'ORDER BY sorting,title', 'delete' => 'deleted', 'treeParentField' => 'parent_id', 'versioningWS' => true, 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'enablecolumns' => array('disabled' => 'hidden', 'fe_group' => 'fe_group'), 'dividers2tabs' => '1', 'dynamicConfigFile' => PATH_txdam . 'tca.php', 'iconfile' => PATH_txdam_rel . 'icon_tx_dam_cat.gif'), 'feInterface' => array('fe_admin_fieldList' => 'hidden, fe_group, title'));
tx_dam::register_mediaTable('tx_dam_metypes_avail');
$TCA['tx_dam_metypes_avail'] = array('ctrl' => array('title' => 'LLL:EXT:dam/lib/locallang.xml:mediaTypes', 'label' => 'title', 'tstamp' => 'tstamp', 'sortby' => 'sorting', 'default_sortby' => 'ORDER BY sorting,title', 'treeParentField' => 'parent_id', 'dynamicConfigFile' => PATH_txdam . 'tca.php', 'iconfile' => PATH_txdam_rel . 'i/mediafolder.gif'));
tx_dam::register_mediaTable('tx_dam_selection');
$TCA['tx_dam_selection'] = array('ctrl' => array('title' => 'LLL:EXT:dam/locallang_db.xml:tx_dam_selection', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'versioning' => '0', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'dynamicConfigFile' => PATH_txdam . 'tca.php', 'iconfile' => PATH_txdam_rel . 'icon_tx_dam_selection.gif'), 'feInterface' => array('fe_admin_fieldList' => 'hidden, starttime, endtime, fe_group, type, title, definition'));
$TCA['tx_dam_media_types'] = array('ctrl' => array('title' => 'LLL:EXT:dam/locallang_db.xml:tx_dam_media_types', 'label' => 'ext', 'versioning' => '0', 'rootLevel' => '1', 'dynamicConfigFile' => PATH_txdam . 'tca.php', 'iconfile' => PATH_txdam_rel . 'i/mimetype.gif'), 'feInterface' => array('fe_admin_fieldList' => 'ext, mime, type, icon'));
Example #15
0
<?php

/* $Id: ext_tables.php 6536 2009-11-25 14:07:18Z stucki $ */
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // Add module
    t3lib_extMgm::addModule('tools', 'txschedulerM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    // Add context sensitive help (csh) to the backend module
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_txschedulerM1', 'EXT:' . $_EXTKEY . '/mod1/locallang_csh_scheduler.xml');
}
Example #16
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Gallery', 'Gallery');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Gallery');
t3lib_extMgm::addLLrefForTCAdescr('tx_nbogallery_domain_model_gallery', 'EXT:nbogallery/Resources/Private/Language/locallang_csh_tx_nbogallery_domain_model_gallery.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_nbogallery_domain_model_gallery');
$TCA['tx_nbogallery_domain_model_gallery'] = array('ctrl' => array('title' => 'LLL:EXT:nbogallery/Resources/Private/Language/locallang_db.xml:tx_nbogallery_domain_model_gallery', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Gallery.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nbogallery_domain_model_gallery.gif'));
if (TYPO3_MODE == 'BE') {
    // Add Wizard Icon
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['Tx_Nbogallery_Utilities_PluginWizard'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/Utility/Backend/PluginWizard.php';
    // Add tables on Pages:
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_nbogallery_domain_model_gallery'][0]['fList'] = 'title,folder';
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_nbogallery_domain_model_gallery'][0]['icon'] = TRUE;
}
Example #17
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'TeamPoint-Supportformular: Formular-Selektor');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2', 'TeamPoint-Supportformular: Formular');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi3', 'TeamPoint-Supportformular: Link zu einem Einzelformular');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TeamPoint-Supportformular');
t3lib_extMgm::addLLrefForTCAdescr('tx_jhesupportform_domain_model_form', 'EXT:jhe_supportform/Resources/Private/Language/locallang_csh_tx_jhesupportform_domain_model_form.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_jhesupportform_domain_model_form');
$TCA['tx_jhesupportform_domain_model_form'] = array('ctrl' => array('title' => 'LLL:EXT:jhe_supportform/Resources/Private/Language/locallang_db.xml:tx_jhesupportform_domain_model_form', 'label' => 'uid', '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' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Form.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_jhesupportform_domain_model_form.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_jhesupportform_domain_model_selector', 'EXT:jhe_supportform/Resources/Private/Language/locallang_csh_tx_jhesupportform_domain_model_selector.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_jhesupportform_domain_model_selector');
$TCA['tx_jhesupportform_domain_model_selector'] = array('ctrl' => array('title' => 'LLL:EXT:jhe_supportform/Resources/Private/Language/locallang_db.xml:tx_jhesupportform_domain_model_selector', 'label' => 'uid', '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' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Selector.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_jhesupportform_domain_model_selector.gif'));
$extensionName = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY));
$pluginName = strtolower('Pi3');
$pluginSignature = $extensionName . '_' . $pluginName;
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/Flexform/Link.xml');
<?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::addLLrefForTCAdescr('fe_groups', 'EXT:context_help/locallang_csh_fe_groups.xml');
t3lib_extMgm::addLLrefForTCAdescr('fe_users', 'EXT:context_help/locallang_csh_fe_users.xml');
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:context_help/locallang_csh_pages.xml');
t3lib_extMgm::addLLrefForTCAdescr('pages_language_overlay', 'EXT:context_help/locallang_csh_pageslol.xml');
t3lib_extMgm::addLLrefForTCAdescr('static_template', 'EXT:context_help/locallang_csh_statictpl.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_domain', 'EXT:context_help/locallang_csh_sysdomain.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_template', 'EXT:context_help/locallang_csh_systmpl.xml');
t3lib_extMgm::addLLrefForTCAdescr('tt_content', 'EXT:context_help/locallang_csh_ttcontent.xml');
Example #20
0
 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
 * For information about using the CSH API in TYPO3 you should consult the documentation found in "Inside TYPO3"
 */
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xml');
t3lib_extMgm::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xml');
t3lib_extMgm::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_workspace', 'EXT:lang/locallang_csh_sysws.xml');
t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xml');
// General Core
t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xml');
// Extension manager
t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xml');
// Web > Info
t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xml');
// Web > Func
// Labels for TYPO3 4.5 and greater.  These labels override the ones set above, while still falling back to the original labels if no translation is available.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xml'][] = 'EXT:lang/4.5/locallang_csh_pages.xml';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xml'][] = 'EXT:lang/4.5/locallang_csh_corebe.xml';
/**
 * $FILEICONS defines icons for the various file-formats
 */
$FILEICONS = array('txt' => 'txt.gif', 'pdf' => 'pdf.gif', 'doc' => 'doc.gif', 'ai' => 'ai.gif', 'bmp' => 'bmp.gif', 'tif' => 'tif.gif', 'htm' => 'htm.gif', 'html' => 'html.gif', 'pcd' => 'pcd.gif', 'gif' => 'gif.gif', 'jpg' => 'jpg.gif', 'jpeg' => 'jpg.gif', 'mpg' => 'mpg.gif', 'mpeg' => 'mpeg.gif', 'exe' => 'exe.gif', 'com' => 'exe.gif', 'zip' => 'zip.gif', 'tgz' => 'zip.gif', 'gz' => 'zip.gif', 'php3' => 'php3.gif', 'php4' => 'php3.gif', 'php5' => 'php3.gif', 'php6' => 'php3.gif', 'php' => 'php3.gif', 'ppt' => 'ppt.gif', 'ttf' => 'ttf.gif', 'pcx' => 'pcx.gif', 'png' => 'png.gif', 'tga' => 'tga.gif', 'class' => 'java.gif', 'sxc' => 'sxc.gif', 'sxw' => 'sxw.gif', 'xls' => 'xls.gif', 'swf' => 'swf.gif', 'swa' => 'flash.gif', 'dcr' => 'flash.gif', 'wav' => 'wav.gif', 'mp3' => 'mp3.gif', 'avi' => 'avi.gif', 'au' => 'au.gif', 'mov' => 'mov.gif', '3ds' => '3ds.gif', 'csv' => 'csv.gif', 'ico' => 'ico.gif', 'max' => 'max.gif', 'ps' => 'ps.gif', 'tmpl' => 'tmpl.gif', 'xls' => 'xls.gif', 'fh3' => 'fh3.gif', 'inc' => 'inc.gif', 'mid' => 'mid.gif', 'psd' => 'psd.gif', 'xml' => 'xml.gif', 'rtf' => 'rtf.gif', 't3x' => 't3x.gif', 't3d' => 't3d.gif', 'cdr' => 'cdr.gif', 'dtd' => 'dtd.gif', 'sgml' => 'sgml.gif', 'ani' => 'ani.gif', 'css' => 'css.gif', 'eps' => 'eps.gif', 'js' => 'js.gif', 'wrl' => 'wrl.gif', 'default' => 'default.gif');
/**
 * backend sprite icon-names
 */
$GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array('actions-document-close', 'actions-document-duplicates-select', 'actions-document-edit-access', 'actions-document-export-csv', 'actions-document-export-t3d', 'actions-document-history-open', 'actions-document-import-t3d', 'actions-document-info', 'actions-document-localize', 'actions-document-move', 'actions-document-new', 'actions-document-open', 'actions-document-open-read-only', 'actions-document-paste-after', 'actions-document-paste-into', 'actions-document-save', 'actions-document-save-close', 'actions-document-save-new', 'actions-document-save-view', 'actions-document-select', 'actions-document-synchronize', 'actions-document-view', 'actions-edit-add', 'actions-edit-copy', 'actions-edit-copy-release', 'actions-edit-cut', 'actions-edit-cut-release', 'actions-edit-delete', 'actions-edit-hide', 'actions-edit-insert-default', 'actions-edit-localize-status-high', 'actions-edit-localize-status-low', 'actions-edit-pick-date', 'actions-edit-rename', 'actions-edit-restore', 'actions-edit-undelete-edit', 'actions-edit-undo', 'actions-edit-unhide', 'actions-edit-upload', 'actions-input-clear', 'actions-insert-record', 'actions-insert-reference', 'actions-move-down', 'actions-move-left', 'actions-move-move', 'actions-move-right', 'actions-move-to-bottom', 'actions-move-to-top', 'actions-move-up', 'actions-page-move', 'actions-page-new', 'actions-page-open', 'actions-selection-delete', 'actions-system-backend-user-emulate', 'actions-system-backend-user-switch', 'actions-system-cache-clear', 'actions-system-cache-clear-impact-high', 'actions-system-cache-clear-impact-low', 'actions-system-cache-clear-impact-medium', 'actions-system-cache-clear-rte', 'actions-system-extension-documentation', 'actions-system-extension-download', 'actions-system-extension-import', 'actions-system-extension-install', 'actions-system-extension-uninstall', 'actions-system-extension-update', 'actions-system-help-open', 'actions-system-list-open', 'actions-system-options-view', 'actions-system-pagemodule-open', 'actions-system-refresh', 'actions-system-shortcut-new', 'actions-system-tree-search-open', 'actions-system-typoscript-documentation', 'actions-system-typoscript-documentation-open', 'actions-template-new', 'actions-version-document-remove', 'actions-version-page-open', 'actions-version-swap-version', 'actions-version-swap-workspace', 'actions-version-workspace-preview', 'actions-version-workspace-sendtostage', 'actions-view-go-back', 'actions-view-go-down', 'actions-view-go-forward', 'actions-view-go-up', 'actions-view-list-collapse', 'actions-view-list-expand', 'actions-view-paging-first', 'actions-view-paging-first-disabled', 'actions-view-paging-last', 'actions-view-paging-last-disabled', 'actions-view-paging-next', 'actions-view-paging-next-disabled', 'actions-view-paging-previous', 'actions-view-paging-previous-disabled', 'actions-view-table-collapse', 'actions-view-table-expand', 'actions-window-open', 'apps-clipboard-images', 'apps-clipboard-list', 'apps-filetree-folder-add', 'apps-filetree-folder-default', 'apps-filetree-folder-list', 'apps-filetree-folder-locked', 'apps-filetree-folder-media', 'apps-filetree-folder-news', 'apps-filetree-folder-opened', 'apps-filetree-folder-recycler', 'apps-filetree-folder-temp', 'apps-filetree-folder-user', 'apps-filetree-mount', 'apps-filetree-root', 'apps-pagetree-backend-user', 'apps-pagetree-backend-user-hideinmenu', 'apps-pagetree-drag-copy-above', 'apps-pagetree-drag-copy-below', 'apps-pagetree-drag-move-above', 'apps-pagetree-drag-move-below', 'apps-pagetree-drag-move-between', 'apps-pagetree-drag-move-into', 'apps-pagetree-drag-new-between', 'apps-pagetree-drag-new-inside', 'apps-pagetree-drag-place-denied', 'apps-pagetree-folder-contains-approve', 'apps-pagetree-folder-contains-board', 'apps-pagetree-folder-contains-fe_users', 'apps-pagetree-folder-contains-news', 'apps-pagetree-folder-contains-shop', 'apps-pagetree-folder-default', 'apps-pagetree-page-advanced', 'apps-pagetree-page-advanced-hideinmenu', 'apps-pagetree-page-advanced-root', 'apps-pagetree-page-backend-users', 'apps-pagetree-page-backend-users-hideinmenu', 'apps-pagetree-page-backend-users-root', 'apps-pagetree-page-default', 'apps-pagetree-page-domain', 'apps-pagetree-page-frontend-user', 'apps-pagetree-page-frontend-user-hideinmenu', 'apps-pagetree-page-frontend-user-root', 'apps-pagetree-page-frontend-users', 'apps-pagetree-page-frontend-users-hideinmenu', 'apps-pagetree-page-frontend-users-root', 'apps-pagetree-page-mountpoint', 'apps-pagetree-page-mountpoint-hideinmenu', 'apps-pagetree-page-mountpoint-root', 'apps-pagetree-page-no-icon-found', 'apps-pagetree-page-no-icon-found-hideinmenu', 'apps-pagetree-page-no-icon-found-root', 'apps-pagetree-page-not-in-menu', 'apps-pagetree-page-recycler', 'apps-pagetree-page-shortcut', 'apps-pagetree-page-shortcut-external', 'apps-pagetree-page-shortcut-external-hideinmenu', 'apps-pagetree-page-shortcut-external-root', 'apps-pagetree-page-shortcut-hideinmenu', 'apps-pagetree-page-shortcut-root', 'apps-pagetree-root', 'apps-pagetree-spacer', 'apps-toolbar-menu-actions', 'apps-toolbar-menu-cache', 'apps-toolbar-menu-opendocs', 'apps-toolbar-menu-search', 'apps-toolbar-menu-shortcut', 'apps-toolbar-menu-workspace', 'mimetypes-compressed', 'mimetypes-excel', 'mimetypes-media-audio', 'mimetypes-media-flash', 'mimetypes-media-image', 'mimetypes-media-video', 'mimetypes-other-other', 'mimetypes-pdf', 'mimetypes-powerpoint', 'mimetypes-text-css', 'mimetypes-text-csv', 'mimetypes-text-html', 'mimetypes-text-js', 'mimetypes-text-php', 'mimetypes-text-text', 'mimetypes-x-content-divider', 'mimetypes-x-content-domain', 'mimetypes-x-content-form', 'mimetypes-x-content-form-search', 'mimetypes-x-content-header', 'mimetypes-x-content-html', 'mimetypes-x-content-image', 'mimetypes-x-content-link', 'mimetypes-x-content-list-bullets', 'mimetypes-x-content-list-files', 'mimetypes-x-content-login', 'mimetypes-x-content-menu', 'mimetypes-x-content-multimedia', 'mimetypes-x-content-page-language-overlay', 'mimetypes-x-content-plugin', 'mimetypes-x-content-script', 'mimetypes-x-content-table', 'mimetypes-x-content-template', 'mimetypes-x-content-template-extension', 'mimetypes-x-content-template-static', 'mimetypes-x-content-text', 'mimetypes-x-content-text-picture', 'mimetypes-x-sys_action', 'mimetypes-x-sys_language', 'mimetypes-x-sys_news', 'mimetypes-x-sys_workspace', 'mimetypes-x_belayout', 'status-dialog-error', 'status-dialog-information', 'status-dialog-notification', 'status-dialog-ok', 'status-dialog-warning', 'status-overlay-access-restricted', 'status-overlay-deleted', 'status-overlay-hidden', 'status-overlay-icon-missing', 'status-overlay-includes-subpages', 'status-overlay-locked', 'status-overlay-scheduled', 'status-overlay-scheduled-future-end', 'status-overlay-translated', 'status-status-checked', 'status-status-current', 'status-status-edit-read-only', 'status-status-icon-missing', 'status-status-locked', 'status-status-permission-denied', 'status-status-permission-granted', 'status-status-reference-hard', 'status-status-reference-soft', 'status-status-workspace-draft', 'status-system-extension-required', 'status-user-admin', 'status-user-backend', 'status-user-frontend', 'status-user-group-backend', 'status-user-group-frontend', 'status-version-1', 'status-version-2', 'status-version-3', 'status-version-4', 'status-version-5', 'status-version-6', 'status-version-7', 'status-version-8', 'status-version-9', 'status-version-10', 'status-version-11', 'status-version-12', 'status-version-13', 'status-version-14', 'status-version-15', 'status-version-16', 'status-version-17', 'status-version-18', 'status-version-19', 'status-version-20', 'status-version-21', 'status-version-22', 'status-version-23', 'status-version-24', 'status-version-25', 'status-version-26', 'status-version-27', 'status-version-28', 'status-version-29', 'status-version-30', 'status-version-31', 'status-version-32', 'status-version-33', 'status-version-34', 'status-version-35', 'status-version-36', 'status-version-37', 'status-version-38', 'status-version-39', 'status-version-40', 'status-version-41', 'status-version-42', 'status-version-43', 'status-version-44', 'status-version-45', 'status-version-46', 'status-version-47', 'status-version-48', 'status-version-49', 'status-version-50', 'status-version-no-version', 'status-warning-in-use', 'status-warning-lock');
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array('hidden', 'starttime', 'endtime', 'futureendtime', 'fe_group', 'protectedSection');
$GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array('hidden' => 'status-overlay-hidden', 'fe_group' => 'status-overlay-access-restricted', 'starttime' => 'status-overlay-scheduled', 'endtime' => 'status-overlay-scheduled', 'futureendtime' => 'status-overlay-scheduled-future-end', 'readonly' => 'status-overlay-locked', 'deleted' => 'status-overlay-deleted', 'missing' => 'status-overlay-missing', 'translated' => 'status-overlay-translated', 'protectedSection' => 'status-overlay-includes-subpages');
if (TYPO3_MODE=='BE')	{
	t3lib_extMgm::insertModuleFunction(
		'web_func',
		'tx_templavoila_referenceElementsWizard',
		t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_referenceelementswizard.php',
		'LLL:EXT:templavoila/locallang.xml:wiz_refElements',
		'wiz'
	);
	t3lib_extMgm::insertModuleFunction(
		'web_func',
		'tx_templavoila_renameFieldInPageFlexWizard',
		t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_renamefieldinpageflexwizard.php',
		'LLL:EXT:templavoila/locallang.xml:wiz_renameFieldsInPage',
		'wiz'
	);
	t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:wizard_crpages/locallang_csh.xml');
}
	// complex condition to make sure the icons are available during frontend editing...
if (TYPO3_MODE == 'BE' ||
	(TYPO3_MODE == 'FE' && isset($GLOBALS['BE_USER']) && method_exists($GLOBALS['BE_USER'], 'isFrontendEditingActive')  && $GLOBALS['BE_USER']->isFrontendEditingActive())
) {
	$icons = array(
		'paste' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_pasteafter.gif',
		'pasteSubRef' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_pastesubref.gif',
		'makelocalcopy' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/makelocalcopy.gif',
		'clip_ref' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_ref.gif',
		'clip_ref-release' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_ref_h.gif',
		'unlink' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/unlink.png',
		'htmlvalidate' => t3lib_extMgm::extRelPath('templavoila') . 'resources/icons/html_go.png',
		'type-fce' => t3lib_extMgm::extRelPath('templavoila') . 'icon_fce_ce.png'
	);
Example #22
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    //	t3lib_extMgm::addModule('tools','txrealurlM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
    // Add Web>Info module:
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_realurl_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_realurl_modfunc1.php', 'LLL:EXT:realurl/locallang_db.xml:moduleFunction.tx_realurl_modfunc1', 'function', 'online');
}
if (version_compare(TYPO3_branch, '6.1', '<')) {
    t3lib_div::loadTCA('pages');
}
$TCA['pages']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'displayCond' => 'FIELD:tx_realurl_exclude:!=:1', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')), 'tx_realurl_pathoverride' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_path_override', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_exclude' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_exclude', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_nocache' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_nocache', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))));
$TCA['pages']['ctrl']['requestUpdate'] .= ',tx_realurl_exclude';
$TCA['pages']['palettes']['137'] = array('showitem' => 'tx_realurl_pathoverride');
if (t3lib_div::compat_version('4.3')) {
    t3lib_extMgm::addFieldsToPalette('pages', '3', 'tx_realurl_nocache', 'after:cache_timeout');
}
if (t3lib_div::compat_version('4.2')) {
    // For 4.2 or new add fields to advanced page only
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1', 'after:nav_title');
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '4,199,254', 'after:title');
} else {
    // Put it for standard page
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '2', 'after:nav_title');
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1,5,4,199,254', 'after:title');
}
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:realurl/locallang_csh.xml');
$TCA['pages_language_overlay']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')));
t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_realurl_pathsegment', '', 'after:nav_title');
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == "BE") {
    t3lib_extMgm::addModule("web", "txl10nmgrM1", "", t3lib_extMgm::extPath($_EXTKEY) . "mod1/");
    t3lib_extMgm::addModule("user", "txl10nmgrM2", "top", t3lib_extMgm::extPath($_EXTKEY) . "mod2/");
}
t3lib_extMgm::allowTableOnStandardPages("tx_l10nmgr_cfg");
t3lib_extMgm::addLLrefForTCAdescr('tx_l10nmgr_cfg', 'EXT:l10nmgr/locallang_csh_l10nmgr.php');
// Example for disabling localization of specific fields in tables like tt_content
// Add as many fields as you need
t3lib_div::loadTCA('tt_content');
//$TCA['tt_content']['columns']['imagecaption']['l10n_mode'] = 'exclude';
//$TCA['tt_content']['columns']['image']['l10n_mode'] = 'prefixLangTitle';
//$TCA['tt_content']['columns']['image']['l10n_display'] = 'defaultAsReadonly';
$TCA["tx_l10nmgr_cfg"] = array("ctrl" => array('title' => 'LLL:EXT:l10nmgr/locallang_db.xml:tx_l10nmgr_cfg', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', "default_sortby" => "ORDER BY title", "dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY) . "tca.php", "iconfile" => t3lib_extMgm::extRelPath($_EXTKEY) . "icon_tx_l10nmgr_cfg.gif"), "feInterface" => array("fe_admin_fieldList" => "title, depth, tablelist, exclude"));
$TCA["tx_l10nmgr_priorities"] = array("ctrl" => array('title' => 'LLL:EXT:l10nmgr/locallang_db.xml:tx_l10nmgr_priorities', '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_l10nmgr_priorities.gif"), "feInterface" => array("fe_admin_fieldList" => "hidden, title, description, languages, element"));
$TCA["tx_l10nmgr_exportdata"] = array("ctrl" => array('title' => 'LLL:EXT:l10nmgr/locallang_db.xml:tx_l10nmgr_export', 'label' => 'title', 'l10ncfg_id' => 'l10ncfg_id', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'source_lang' => 'source_lang', 'translation_lang' => 'translation_lang', 'source_lang' => 'source_lang', "default_sortby" => "ORDER BY title", "delete" => "deleted", "dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY) . "tca.php", "iconfile" => t3lib_extMgm::extRelPath($_EXTKEY) . "icon_tx_l10nmgr_cfg.gif"), "feInterface" => array("fe_admin_fieldList" => "title, source_lang, l10ncfg_id, crdate, delete, exclude"));
if (TYPO3_MODE == "BE") {
    $GLOBALS["TBE_MODULES_EXT"]["xMOD_alt_clickmenu"]["extendCMclasses"][] = array("name" => "tx_l10nmgr_cm1", "path" => t3lib_extMgm::extPath($_EXTKEY) . "class.tx_l10nmgr_cm1.php");
    // Add context sensitive help (csh) for the Scheduler tasks
    t3lib_extMgm::addLLrefForTCAdescr('_tasks_txl10nmgr', 'EXT:' . $_EXTKEY . '/tasks/locallang_csh_tasks.xml');
}
        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,');
}
Example #25
0
$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

// 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');
    $TCA['tt_content']['columns']['list_type']['config']['items'][] = array('', '--div--');
    $pluginSignature = strtolower($extensionName) . '_postlist';
    $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key';
    $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform,recursive';
    t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
}
if (TYPO3_MODE === 'BE') {
    /**
     * Registers a Backend Module
     */
    Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'tx_blogexample_m1', '', array('Blog' => 'index,new,create,delete,deleteAll,edit,update,populate', 'Post' => 'index,show,new,create,delete,edit,update', 'Comment' => 'create,delete,deleteAll'), array('access' => 'user,group', 'icon' => 'EXT:blog_example/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml'));
}
/**
 * Add labels for context sensitive help (CSH)
 */
t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_BlogExampleTxBlogexampleM1', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh.xml');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'BlogExample setup');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/DefaultStyles', 'BlogExample CSS Styles (optional)');
t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_blog');
$TCA['tx_blogexample_domain_model_blog'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Blog.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif'));
t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_post');
$TCA['tx_blogexample_domain_model_post'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post', 'label' => 'title', 'label_alt' => 'author', 'label_alt_force' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Post.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_post.gif'));
t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_comment');
$TCA['tx_blogexample_domain_model_comment'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment', 'label' => 'date', 'label_alt' => 'author', 'label_alt_force' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Comment.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_comment.gif'));
t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_person');
$TCA['tx_blogexample_domain_model_person'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person', 'label' => 'lastname', 'label_alt' => 'firstname', 'label_alt_force' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Person.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_person.gif'));
t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_tag');
$TCA['tx_blogexample_domain_model_tag'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_tag', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Tag.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_tag.gif'));
t3lib_div::loadTCA('fe_users');
if (is_array($TCA['fe_users']['columns']['tx_extbase_type'])) {
    $TCA['fe_users']['types']['Tx_BlogExample_Domain_Model_Administrator'] = $TCA['fe_users']['types']['0'];
    die('Access denied.');
}
// Extension manager configuration
$configuration = Tx_News_Utility_EmConfiguration::getSettings();
// Alternative labels for news & category records
t3lib_div::requireOnce(t3lib_extMgm::extPath($_EXTKEY) . 'Classes/Hooks/Labels.php');
// Add additional media types like DAM
t3lib_div::requireOnce(t3lib_extMgm::extPath($_EXTKEY) . 'Classes/Hooks/ItemsProcFunc.php');
// CSH - context sensitive help
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_news', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_news.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_category', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_category.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_media', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_media.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_file', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_file.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_link', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_link.xml');
t3lib_extMgm::addLLrefForTCAdescr('tx_news_domain_model_tag', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_tag.xml');
t3lib_extMgm::addLLrefForTCAdescr('tt_content.pi_flexform.news_pi1.list', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_flexforms.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_news');
$TCA['tx_news_domain_model_news'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news', 'label' => 'title', 'prependAtCopy' => $configuration->getPrependAtCopy() ? 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy' : '', 'hideAtCopy' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'editlock' => 'editlock', 'type' => 'type', 'typeicon_column' => 'type', 'typeicons' => array('1' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_news_internal.gif', '2' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_news_external.gif'), 'dividers2tabs' => TRUE, 'useColumnsForDefaultValues' => 'type', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'default_sortby' => 'ORDER BY datetime DESC', 'sortby' => $configuration->getManualSorting() ? 'sorting' : '', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/news.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_news.gif', 'searchFields' => 'uid,title', 'requestUpdate' => 'rte_disabled'));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_category');
$TCA['tx_news_domain_model_category'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_category', 'label' => 'title', 'label_alt' => 'parentcategory,sys_language_uid', 'label_alt_force' => 1, 'label_userFunc' => 'Tx_News_Hooks_Labels->getUserLabelCategory', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'default_sortby' => 'ORDER BY crdate', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/category.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_category.gif', 'treeParentField' => 'parentcategory', 'searchFields' => 'uid,title'));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_media');
$TCA['tx_news_domain_model_media'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_media', 'label' => 'caption', 'label_alt' => 'type, showinpreview', 'label_alt_force' => 1, 'label_userFunc' => 'Tx_News_Hooks_Labels->getUserLabelMedia', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'dividers2tabs' => TRUE, 'default_sortby' => 'ORDER BY sorting', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/media.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_media.gif', 'hideTable' => TRUE));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_media');
$TCA['tx_news_domain_model_file'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_file', 'label' => 'title', 'label_alt' => 'file', 'label_alt_force' => 1, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'dividers2tabs' => TRUE, 'default_sortby' => 'ORDER BY sorting', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'fe_group' => 'fe_group'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/file.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_file.gif', 'hideTable' => TRUE));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_file');
$TCA['tx_news_domain_model_link'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_link', 'label' => 'title', 'label_alt' => 'uri', 'label_alt_force' => 1, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'dividers2tabs' => TRUE, 'default_sortby' => 'ORDER BY sorting', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/link.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_link.gif', 'hideTable' => TRUE));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_link');
$TCA['tx_news_domain_model_tag'] = array('ctrl' => array('title' => 'LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_tag', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca/tag.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/news_domain_model_tag.png', 'searchFields' => 'uid,title'));
t3lib_extMgm::allowTableOnStandardPages('tx_news_domain_model_tag');
/***************
 * Plugin
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Testplugin', 'Test plugin');
if (TYPO3_MODE === 'BE') {
    /**
     * Registers a Backend Module
     */
    Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'testmodule', '', array('Main' => 'list, show, new, create, edit, update, delete'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_testmodule.xml'));
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Compatibility Test Extension Version 1.0');
t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_main', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_main.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_main');
$TCA['tx_testextension_domain_model_main'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_main', 'label' => 'name', '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' => 'name,identifier,child1,children2,child3,children4,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Main.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_main.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child1', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child1.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child1');
$TCA['tx_testextension_domain_model_child1'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child1', 'label' => 'name', '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' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child1.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child1.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child2', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child2.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child2');
$TCA['tx_testextension_domain_model_child2'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child2', 'label' => 'uid', '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' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child2.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child2.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child3', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child3.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child3');
$TCA['tx_testextension_domain_model_child3'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child3', 'label' => 'name', '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' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child3.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child3.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child4', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child4.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child4');
$TCA['tx_testextension_domain_model_child4'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child4', 'label' => 'name', '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' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child4.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child4.gif'));
Example #30
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Showroom', 'Showroom');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Showroom');
t3lib_extMgm::addLLrefForTCAdescr('tx_nxshowroom_domain_model_resource', 'EXT:nxshowroom/Resources/Private/Language/locallang_csh_tx_nxshowroom_domain_model_resource.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_nxshowroom_domain_model_resource');
$TCA['tx_nxshowroom_domain_model_resource'] = array('ctrl' => array('title' => 'LLL:EXT:nxshowroom/Resources/Private/Language/locallang_db.xml:tx_nxshowroom_domain_model_resource', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Resource.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nxshowroom_domain_model_resource.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_nxshowroom_domain_model_attachment', 'EXT:nxshowroom/Resources/Private/Language/locallang_csh_tx_nxshowroom_domain_model_attachment.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_nxshowroom_domain_model_attachment');
$TCA['tx_nxshowroom_domain_model_attachment'] = array('ctrl' => array('title' => 'LLL:EXT:nxshowroom/Resources/Private/Language/locallang_db.xml:tx_nxshowroom_domain_model_attachment', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Attachment.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nxshowroom_domain_model_attachment.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_nxshowroom_domain_model_type', 'EXT:nxshowroom/Resources/Private/Language/locallang_csh_tx_nxshowroom_domain_model_type.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_nxshowroom_domain_model_type');
$TCA['tx_nxshowroom_domain_model_type'] = array('ctrl' => array('title' => 'LLL:EXT:nxshowroom/Resources/Private/Language/locallang_db.xml:tx_nxshowroom_domain_model_type', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Type.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nxshowroom_domain_model_type.gif'));
t3lib_extMgm::addLLrefForTCAdescr('tx_nxshowroom_domain_model_tags', 'EXT:nxshowroom/Resources/Private/Language/locallang_csh_tx_nxshowroom_domain_model_tags.xml');
t3lib_extMgm::allowTableOnStandardPages('tx_nxshowroom_domain_model_tags');
$TCA['tx_nxshowroom_domain_model_tags'] = array('ctrl' => array('title' => 'LLL:EXT:nxshowroom/Resources/Private/Language/locallang_db.xml:tx_nxshowroom_domain_model_tags', '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'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Tags.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_nxshowroom_domain_model_tags.gif'));