Esempio n. 1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('fe_groups', 'EXT:context_help/locallang_csh_fe_groups.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('fe_users', 'EXT:context_help/locallang_csh_fe_users.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('pages', 'EXT:context_help/locallang_csh_pages.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('pages_language_overlay', 'EXT:context_help/locallang_csh_pageslol.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('static_template', 'EXT:context_help/locallang_csh_statictpl.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_domain', 'EXT:context_help/locallang_csh_sysdomain.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_file_storage', 'EXT:context_help/locallang_csh_sysfilestorage.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_template', 'EXT:context_help/locallang_csh_systmpl.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('tt_content', 'EXT:context_help/locallang_csh_ttcontent.xml');
// 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:context_help/locallang_csh_pages.xml'][] = 'EXT:context_help/4.5/locallang_csh_pages.xml';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_ttcontent.xml'][] = 'EXT:context_help/4.5/locallang_csh_ttcontent.xml';
Esempio n. 2
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_func', 'TYPO3\\CMS\\FuncWizards\\Controller\\WebFunctionWizardsBaseController', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'class.tx_funcwizards_webfunc.php', 'LLL:EXT:func_wizards/locallang.php:mod_wizards');
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_MOD_web_func', 'EXT:func_wizards/locallang_csh.xml');
}
Esempio n. 3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Core\Extension\ExtensionManager::addModule('web', 'layout', 'top', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'layout/');
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xml');
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xml');
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'tx_cms_webinfo_page', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'web_info/class.tx_cms_webinfo.php', 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page');
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'tx_cms_webinfo_lang', \TYPO3\CMS\Core\Extension\ExtensionManager::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:
\TYPO3\CMS\Core\Extension\ExtensionManager::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,menu_type', 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_tt_content.php', 'dividers2tabs' => 1, 'searchFields' => 'header,header_link,subheader,bodytext,pi_flexform'));
// fe_users
$TCA['fe_users'] = array('ctrl' => array('label' => 'username', 'default_sortby' => 'ORDER BY 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' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1, 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company'), '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' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1, 'searchFields' => 'title,description'));
// 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' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'searchFields' => 'domainName,redirectTo'));
// pages_language_overlay
$TCA['pages_language_overlay'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay', 'versioningWS' => TRUE, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'transOrigPointerField' => 'pid', 'transOrigPointerTable' => 'pages', 'transOrigDiffSourceField' => 'l18n_diffsource', 'shadowColumnsForNewPlaceholders' => 'title', 'languageField' => 'sys_language_uid', 'mainpalette' => 1, 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'type' => 'doktype', 'typeicon_classes' => array('default' => 'mimetypes-x-content-page-language-overlay'), 'dividers2tabs' => TRUE, 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url'));
// sys_template
$TCA['sys_template'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'sortby' => 'sorting', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'adminOnly' => 1, 'iconfile' => 'template.gif', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'typeicon_column' => 'root', 'typeicon_classes' => array('default' => 'mimetypes-x-content-template-extension', '1' => 'mimetypes-x-content-template'), 'typeicons' => array('0' => 'template_add.gif'), 'dividers2tabs' => 1, 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'searchFields' => 'title,constants,config'));
// layouts
$TCA['backend_layout'] = array('ctrl' => array('title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tbl_cms.php', 'iconfile' => 'backend_layout.gif', 'selicon_field' => 'icon', 'selicon_field_path' => 'uploads/media', 'thumbnail' => 'resources'));
Esempio n. 4
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Add static template for Click-enlarge rendering
\TYPO3\CMS\Core\Extension\ExtensionManager::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
// Add configuration of soft references on image tags in RTE content
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php';
// Add acronyms table
$GLOBALS['TCA']['tx_rtehtmlarea_acronym'] = array('ctrl' => array('title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:TYPO3\\CMS\\Rtehtmlarea\\Extension\\Acronym', 'label' => 'term', 'default_sortby' => 'ORDER BY term', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tca.php', 'iconfile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'extensions/Acronym/skin/images/acronym.gif'));
\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
// Add contextual help files
$htmlAreaRteContextHelpFiles = array('General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf', 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf', 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf', 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf', 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf', 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf', 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf', 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf');
foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
}
unset($htmlAreaRteContextHelpFiles);
// Extend TYPO3 User Settings Configuration
if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Extension\ExtensionManager::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';
}
Esempio n. 5
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['sys_note'] = array('ctrl' => array('label' => 'subject', 'default_sortby' => 'ORDER BY crdate', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy', 'delete' => 'deleted', 'title' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note', 'iconfile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'ext_icon.gif', 'sortby' => 'sorting', 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Configuration/Tca/SysNote.php'));
\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('sys_note');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_note', 'EXT:sys_note/Resources/Private/Language/locallang_csh_sysnote.xlf');
Esempio n. 6
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'TYPO3\\CMS\\Impexp\\Clickmenu', 'path' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'class.tx_impexp_clickmenu.php');
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tx_impexp_task'] = array('title' => 'LLL:EXT:impexp/locallang_csh.xml:.alttitle', 'description' => 'LLL:EXT:impexp/locallang_csh.xml:.description', 'icon' => 'EXT:impexp/export.gif');
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/locallang_csh.xml');
    // CSH 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:impexp/locallang_csh.xml'][] = 'EXT:impexp/locallang_csh_45.xml';
    // Special context menu actions for the import/export module
    $importExportActions = '
		9000 = DIVIDER

		9100 = ITEM
		9100 {
			name = exportT3d
			label = LLL:EXT:impexp/app/locallang.xml:export
			spriteIcon = actions-document-export-t3d
			callbackAction = exportT3d
		}

		9200 = ITEM
		9200 {
			name = importT3d
			label = LLL:EXT:impexp/app/locallang.xml:import
			spriteIcon = actions-document-import-t3d
			callbackAction = importT3d
		}
	';
Esempio n. 7
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Core\Extension\ExtensionManager::addModule('user', 'setup', 'after:task', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'mod/');
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_MOD_user_setup', 'EXT:setup/locallang_csh_mod.xml');
}
$GLOBALS['TYPO3_USER_SETTINGS'] = array('ctrl' => array('dividers2tabs' => 1), 'columns' => array('realName' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xml:beUser_realName', 'table' => 'be_users', 'csh' => 'beUser_realName'), 'email' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xml:beUser_email', 'table' => 'be_users', 'csh' => 'beUser_email'), 'emailMeAtLogin' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:emailMeAtLogin', 'csh' => 'emailMeAtLogin'), 'password' => array('type' => 'password', 'label' => 'LLL:EXT:setup/mod/locallang.xml:newPassword', 'table' => 'be_users', 'csh' => 'newPassword', 'eval' => 'md5'), 'password2' => array('type' => 'password', 'label' => 'LLL:EXT:setup/mod/locallang.xml:newPasswordAgain', 'table' => 'be_users', 'csh' => 'newPasswordAgain', 'eval' => 'md5'), 'lang' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderLanguageSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xml:language', 'csh' => 'language'), 'startModule' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderStartModuleSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xml:startModule', 'csh' => 'startModule'), 'thumbnailsByDefault' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:showThumbs', 'csh' => 'showThumbs'), 'edit_wideDocument' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:edit_wideDocument', 'csh' => 'edit_wideDocument'), 'titleLen' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xml:maxTitleLen', 'csh' => 'maxTitleLen'), 'edit_RTE' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:edit_RTE', 'csh' => 'edit_RTE'), 'edit_docModuleUpload' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:edit_docModuleUpload', 'csh' => 'edit_docModuleUpload'), 'showHiddenFilesAndFolders' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:showHiddenFilesAndFolders', 'csh' => 'showHiddenFilesAndFolders'), 'copyLevels' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xml:copyLevels', 'csh' => 'copyLevels'), 'recursiveDelete' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:recursiveDelete', 'csh' => 'recursiveDelete'), 'simulate' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderSimulateUserSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xml:simulate', 'csh' => 'simuser'), 'resetConfiguration' => array('type' => 'button', 'label' => 'LLL:EXT:setup/mod/locallang.xml:resetConfiguration', 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xml:resetConfigurationShort', 'csh' => 'reset', 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }', 'onClickLabels' => array('LLL:EXT:setup/mod/locallang.xml:setToStandardQuestion')), 'clearSessionVars' => array('type' => 'button', 'access' => 'admin', 'label' => 'LLL:EXT:setup/mod/locallang.xml:clearSessionVars', 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xml:clearSessionVarsShort', 'csh' => 'reset', 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'clearSessionVars\').value = 1; this.form.submit(); }', 'onClickLabels' => array('LLL:EXT:setup/mod/locallang.xml:clearSessionVarsQuestion')), 'enableFlashUploader' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:enableFlashUploader', 'csh' => 'enableFlashUploader'), 'resizeTextareas' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:resizeTextareas', 'csh' => 'resizeTextareas'), 'resizeTextareas_Flexible' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:resizeTextareas_Flexible', 'csh' => 'resizeTextareas_Flexible'), 'resizeTextareas_MaxHeight' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xml:flexibleTextareas_MaxHeight', 'csh' => 'flexibleTextareas_MaxHeight'), 'debugInWindow' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xml:debugInWindow', 'access' => 'admin')), 'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xml:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
			--div--;LLL:EXT:setup/mod/locallang.xml:opening,startModule,thumbnailsByDefault,titleLen,
			--div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,showHiddenFilesAndFolders,enableFlashUploader,resizeTextareas,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,clearSessionVars,
			--div--;LLL:EXT:setup/mod/locallang.xml:adminFunctions,simulate,debugInWindow');
Esempio n. 8
0
$GLOBALS['TCA']['fe_users']['columns']['password']['config']['max'] = 100;
if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled('FE')) {
    // Get eval field operations methods as array keys
    $operations = array_flip(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TCA']['fe_users']['columns']['password']['config']['eval'], TRUE));
    // Remove md5 and temporary password from the list of evaluated methods
    unset($operations['md5'], $operations['password']);
    // Append new methods to have "password" as last operation.
    $operations['TYPO3\\CMS\\Saltedpasswords\\Evaluation\\Evaluator_fe'] = 1;
    $operations['password'] = 1;
    $GLOBALS['TCA']['fe_users']['columns']['password']['config']['eval'] = implode(',', array_keys($operations));
    unset($operations);
}
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('be_users');
$GLOBALS['TCA']['be_users']['columns']['password']['config']['max'] = 100;
if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled('BE')) {
    // Get eval field operations methods as array keys
    $operations = array_flip(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'], TRUE));
    // Remove md5 and temporary password from the list of evaluated methods
    unset($operations['md5'], $operations['password']);
    // Append new methods to have "password" as last operation.
    $operations['TYPO3\\CMS\\Saltedpasswords\\Evaluation\\BackendEvaluator'] = 1;
    $operations['password'] = 1;
    $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'] = implode(',', array_keys($operations));
    unset($operations);
    // Prevent md5 hashing on client side via JS
    $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password']['eval'] = '';
    $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password2']['eval'] = '';
}
// Add context sensitive help (csh) for scheduler task
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_txsaltedpasswords', 'EXT:' . $_EXTKEY . '/locallang_csh_saltedpasswords.xml');
Esempio n. 9
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // Add module
    \TYPO3\CMS\Core\Extension\ExtensionManager::addModule('tools', 'txschedulerM1', '', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'mod1/');
    // Add context sensitive help (csh) to the backend module
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_MOD_tools_txschedulerM1', 'EXT:' . $_EXTKEY . '/mod1/locallang_csh_scheduler.xml');
}
Esempio n. 10
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    $TCA['sys_action'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'default_sortby' => 'ORDER BY title', 'sortby' => 'sorting', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy', 'title' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'adminOnly' => 1, 'rootLevel' => -1, 'setToDefaultOnCopy' => 'assign_to_groups', 'enablecolumns' => array('disabled' => 'hidden'), 'typeicon_classes' => array('default' => 'mimetypes-x-sys_action'), 'type' => 'type', 'iconfile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'x-sys_action.png', 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tca.php'));
    $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('sys_action') . 'toolbarmenu/registerToolbarItem.php';
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_action', 'EXT:sys_action/locallang_csh_sysaction.xml');
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['sys_action']['tx_sysaction_task'] = array('title' => 'LLL:EXT:sys_action/locallang_tca.xml:sys_action', 'description' => 'LLL:EXT:sys_action/locallang_csh_sysaction.xml:.description', 'icon' => 'EXT:sys_action/x-sys_action.png');
}
Esempio n. 11
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Extension\ExtensionManager::addPlugin(array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
// Registers the Extbase plugin to be listed in the Backend.
if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('extbase')) {
    $extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Pi2', 'Indexed Search (experimental)');
    $pluginSignature = strtolower($extensionName) . '_pi2';
    $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Core\Extension\ExtensionManager::addModule('tools', 'isearch', 'after:log', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'mod/');
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexedPagesController', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'modfunc1/class.tx_indexedsearch_modfunc1.php', 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search');
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexingStatisticsController', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'modfunc2/class.tx_indexedsearch_modfunc2.php', 'LLL:EXT:indexed_search/locallang.php:mod2_indexed_search');
}
\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('index_config');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xml');
$TCA['index_config'] = array('ctrl' => array('title' => 'LLL:EXT:indexed_search/locallang_db.php:index_config', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'default_sortby' => 'ORDER BY crdate', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime'), 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tca.php', 'iconfile' => 'default.gif'), 'feInterface' => array('fe_admin_fieldList' => 'hidden, starttime, title, description, type, depth, table2index, alternative_source_pid, get_params, chashcalc, filepath, extensions'));