예제 #1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_wizardsortpages_webfunc_2', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_wizardsortpages_webfunc_2.php', 'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort', 'wiz');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xml');
}
예제 #2
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');
예제 #3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    $tempSetup = unserialize($_EXTCONF);
    if ($tempSetup['add_media_file_indexing']) {
        t3lib_extMgm::insertModuleFunction('txdamM1_file', 'tx_damindex_index', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc_index/class.tx_damindex_index.php', 'LLL:EXT:dam_index/modfunc_index/locallang.xml:tx_damindex_index.title');
    }
    if ($tempSetup['add_media_indexing']) {
        t3lib_extMgm::addModule('txdamM1', 'index', 'before:tools', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
        t3lib_extMgm::insertModuleFunction('txdamM1_index', 'tx_damindex_index', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc_index/class.tx_damindex_index.php', 'LLL:EXT:dam_index/modfunc_index/locallang.xml:tx_damindex_index.title');
    }
}
예제 #4
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'));
예제 #5
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // module
    t3lib_extMgm::addModulePath('tools_txsolradminM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    t3lib_extMgm::addModule('tools', 'txsolradminM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    // module info
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_solradmin_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_solradmin_modfunc1.php', 'Solr Admin');
}
$tasks = array('sitecheck', 'post');
foreach ($tasks as $task) {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_' . $_EXTKEY . '_' . $task] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/mod1/locallang.xml:task.' . $task . '.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/mod1/locallang.xml:task.' . $task . '.description', 'additionalFields' => 'tx_' . $_EXTKEY . '_' . $task . '_fields');
}
예제 #6
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_ts', 'tx_tstemplateceditor', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_tstemplateceditor.php', 'LLL:EXT:tstemplate/ts/locallang.xml:constantEditor');
}
예제 #7
0
}
t3lib_div::loadTCA("pages_language_overlay");
t3lib_extMgm::addTCAcolumns("pages_language_overlay", $tempColumnsPages, 1);
if (version_compare(TYPO3_version, '4.5', '<')) {
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "tx_languagevisibility_visibility;;;;1-1-1", '', 'after:l18n_cfg');
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname", '', 'before:l18n_cfg');
} else {
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1", '', '');
}
t3lib_div::loadTCA("tt_news");
t3lib_extMgm::addTCAcolumns("tt_news", $tempColumnsElements, 1);
t3lib_extMgm::addToAllTCAtypes("tt_news", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1");
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content", $tempColumnsElements, 1);
if (version_compare(TYPO3_version, '4.5', '<')) {
    t3lib_extMgm::addToAllTCAtypes('tt_content', "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1,sys_language_uid,l18n_parent", '', 'before:sys_language_uid');
    $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem'] = str_replace('sys_language_uid,', '', $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem']);
    $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem'] = str_replace('l18n_parent,', '', $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem']);
} else {
    t3lib_extMgm::addToAllTCAtypes("tt_content", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1,sys_language_uid,l18n_parent", '', 'before:--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended');
    $GLOBALS['TCA']['tt_content']['palettes']['general']['showitem'] = str_replace('sys_language_uid;LLL:EXT:cms/locallang_ttc.xml:sys_language_uid_formlabel', '', $GLOBALS['TCA']['tt_content']['palettes']['general']['showitem']);
}
$GLOBALS['TCA']['tt_content']['ctrl']['dividers2tabs'] = TRUE;
$tempColumns = array("tx_languagevisibility_allow_movecutdelete_foroverlays" => array("exclude" => 1, "label" => "LLL:EXT:languagevisibility/locallang_db.xml:be_groups.allow_movecutdelete_foroverlays:", "config" => array("type" => "check")));
t3lib_div::loadTCA("be_groups");
t3lib_extMgm::addTCAcolumns("be_groups", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("be_groups", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_allow_movecutdelete_foroverlays;;;;1-1-1");
if (TYPO3_MODE == "BE") {
    t3lib_extMgm::insertModuleFunction("web_info", "tx_languagevisibility_modfunc1", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_languagevisibility_modfunc1.php", "LLL:EXT:languagevisibility/locallang_db.xml:moduleFunction.tx_languagevisibility_modfunc1");
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'tx_languagevisibility_reports_ConfigurationStatus';
예제 #8
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_ts', 'tx_tstemplateinfo', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_tstemplateinfo.php', 'LLL:EXT:tstemplate/ts/locallang.xml:infoModify');
}
예제 #9
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::addModule('tools', 'log', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_belog_webinfo', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_belog_webinfo.php', 'Log');
}
예제 #10
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addPlugin(array('LLL:EXT:indexed_search/locallang.php:mod_indexed_search', $_EXTKEY));
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY] = 'layout,select_key,pages';
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::addModule('tools', 'isearch', 'after:log', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_indexedsearch_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_indexedsearch_modfunc1.php', 'LLL:EXT:indexed_search/locallang.php:mod_indexed_search');
    t3lib_extMgm::insertModuleFunction("web_info", "tx_indexedsearch_modfunc2", t3lib_extMgm::extPath($_EXTKEY) . "modfunc2/class.tx_indexedsearch_modfunc2.php", "LLL:EXT:indexed_search/locallang.php:mod2_indexed_search");
}
t3lib_extMgm::allowTableOnStandardPages('index_config');
t3lib_extMgm::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xml');
if (t3lib_extMgm::isLoaded('crawler')) {
    $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' => t3lib_extMgm::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'));
}
// Example of crawlerhook (see also ext_localconf.php!)
/*
	t3lib_div::loadTCA('index_config');
	$TCA['index_config']['columns']['type']['config']['items'][] =  Array('My Crawler hook!', 'tx_myext_example1');
	$TCA['index_config']['types']['tx_myext_example1'] = $TCA['index_config']['types']['0'];
*/
예제 #11
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // add info module function
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_crawler_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_crawler_modfunc1.php', 'LLL:EXT:crawler/locallang_db.php:moduleFunction.tx_crawler_modfunc1');
    // add context menu item
    $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_crawler_contextMenu', 'path' => t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_crawler_contextMenu.php');
}
t3lib_extMgm::allowTableOnStandardPages('tx_crawler_configuration');
$TCA["tx_crawler_configuration"] = array("ctrl" => array('title' => 'LLL:EXT:crawler/locallang_db.xml:tx_crawler_configuration', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => "ORDER BY crdate", 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_crawler_configuration.gif'), "feInterface" => array("fe_admin_fieldList" => "hidden, name, processing_instruction_filter, processing_instruction_parameters_ts, configuration, base_url, sys_domain_base_url, pidsonly, begroups,fegroups, sys_workspace_uid, realurl, chash, exclude"));
if (version_compare(TYPO3_version, '4.5.0', '<=')) {
    t3lib_div::loadTCA("tx_crawler_configuration");
    $TCA['tx_crawler_configuration']['columns']['sys_workspace_uid']['config']['items'][1] = array('LLL:EXT:lang/locallang_misc.xml:shortcut_offlineWS', -1);
}
예제 #12
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_infopagetsconfig_webinfo', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_infopagetsconfig_webinfo.php', 'LLL:EXT:info_pagetsconfig/locallang.php:mod_pagetsconfig');
}
t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info', 'EXT:info_pagetsconfig/locallang_csh_webinfo.xml');
예제 #13
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_ts', 'tx_tstemplateobjbrowser', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_tstemplateobjbrowser.php', 'LLL:EXT:tstemplate/ts/locallang.xml:objectBrowser');
}
예제 #14
0
$TCA['tx_templavoila_datastructure'] = array('ctrl' => array('title' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_datastructure', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_ds.gif', 'selicon_field' => 'previewicon', 'selicon_field_path' => 'uploads/tx_templavoila', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'shadowColumnsForNewPlaceholders' => 'scope,title'));
t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_datastructure');
t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_tmplobj');
// Adding access list to be_groups
t3lib_div::loadTCA('be_groups');
$tempColumns = array('tx_templavoila_access' => array('label' => 'LLL:EXT:templavoila/locallang_db.xml:be_groups.tx_templavoila_access', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_templavoila_datastructure,tx_templavoila_tmplobj', 'prepend_tname' => 1, 'size' => 5, 'autoSizeMax' => 15, 'multiple' => 1, 'minitems' => 0, 'maxitems' => 1000, 'show_thumbs' => 1)));
t3lib_extMgm::addTCAcolumns('be_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('be_groups', 'tx_templavoila_access;;;;1-1-1', '1');
// Adding the new content element, "Flexible Content":
t3lib_div::loadTCA('tt_content');
$tempColumns = array('tx_templavoila_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (2) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope2', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_to', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_flex' => array('l10n_cat' => 'text', 'exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_flex', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'flex', 'ds_pointerField' => 'tx_templavoila_ds', 'ds_tableField' => 'tx_templavoila_datastructure:dataprot')), 'tx_templavoila_pito' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_pito', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->pi_templates', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)));
t3lib_extMgm::addTCAcolumns('tt_content', $tempColumns, 1);
$TCA['tt_content']['types'][$_EXTKEY . '_pi1']['showitem'] = 'CType;;4;button;1-1-1, header;;3;;2-2-2,tx_templavoila_ds,tx_templavoila_to,tx_templavoila_flex;;;;2-2-2, hidden;;1;;3-3-3';
t3lib_extMgm::addPlugin(array('LLL:EXT:templavoila/locallang_db.xml:tt_content.CType_pi1', $_EXTKEY . '_pi1'), 'CType');
if ($TCA['tt_content']['ctrl']['requestUpdate'] != '') {
    $TCA['tt_content']['ctrl']['requestUpdate'] .= ',';
}
$TCA['tt_content']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds';
// For pages:
$tempColumns = array('tx_templavoila_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (1) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope1', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'suppress_icons' => 'IF_VALUE_FALSE')), 'tx_templavoila_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_to', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_next_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_next_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (1) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope1', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'suppress_icons' => 'IF_VALUE_FALSE')), 'tx_templavoila_next_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_next_to', 'displayCond' => 'FIELD:tx_templavoila_next_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_next_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_flex' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_flex', 'config' => array('type' => 'flex', 'ds_pointerField' => 'tx_templavoila_ds', 'ds_pointerField_searchParent' => 'pid', 'ds_pointerField_searchParent_subField' => 'tx_templavoila_next_ds', 'ds_tableField' => 'tx_templavoila_datastructure:dataprot')));
t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_ds;;;;1-1-1,tx_templavoila_to,tx_templavoila_next_ds,tx_templavoila_next_to,tx_templavoila_flex;;;;1-1-1');
if ($TCA['pages']['ctrl']['requestUpdate'] != '') {
    $TCA['pages']['ctrl']['requestUpdate'] .= ',';
}
$TCA['pages']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds,tx_templavoila_next_ds';
// Configure the referencing wizard to be used in the web_func module:
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_templavoila_referenceElementsWizard', t3lib_extMgm::extPath($_EXTKEY) . 'func_wizards/class.tx_templavoila_referenceelementswizard.php', 'LLL:EXT:templavoila/locallang.xml:wiz_refElements', 'wiz');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_crpages/locallang_csh.xml');
}
예제 #15
0
<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
if (TYPO3_MODE == "BE") {
    // TYPO3 CMS >= 6.0
    if (class_exists('\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility')) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('tools', 'txkickstarter', '', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/');
    } else {
        t3lib_extMgm::insertModuleFunction("tools_em", "tx_kickstarter_modfunc1", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_kickstarter_modfunc1.php", "LLL:EXT:kickstarter/locallang_db.xml:moduleFunction.tx_kickstarter_modfunc1");
        t3lib_extMgm::insertModuleFunction("tools_em", "tx_kickstarter_modfunc2", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_kickstarter_modfunc1.php", "LLL:EXT:kickstarter/locallang_db.xml:moduleFunction.tx_kickstarter_modfunc2", 'singleDetails');
    }
}
예제 #16
0
 /**
  * Register a class which renders a "editor".
  * A editor is something that modifies a file. This can be a text editor or a module to crop an image.
  *
  * @param	string		$idName This is the ID of the editor. Chars allowed only: [a-zA-z]
  * @param	string		$class Function/Method reference, '[file-reference":"]["&"]class'. See t3lib_div::callUserFunction().
  * @param	string		$position can be used to set the position of a new item within the list of existing items. $position has this syntax: [cmd]:[item-key]. cmd can be "after", "before" or "top" (or "bottom"/blank which is default). If "after"/"before" then submodule will be inserted after/before the existing item with [item-key] if found. If not found, the bottom of list. If "top" the item is inserted in the top of the item list.
  * @return	void
  */
 function register_editor($idName, $classRef, $position = '')
 {
     tx_dam::_addItem($idName, $classRef, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dam']['editorClasses'], $position);
     // an editor is also and module function so we register it here
     if (strstr($classRef, ':')) {
         list($file, $class) = t3lib_div::revExplode(':', $classRef, 2);
         $requireFile = t3lib_div::getFileAbsFileName($file);
     } else {
         $class = $classRef;
     }
     // Check for persistent object token, "&"
     if (substr($class, 0, 1) == '&') {
         $class = substr($class, 1);
     }
     // register module function
     t3lib_extMgm::insertModuleFunction('txdamM1_edit', $class, $requireFile, 'LLL:EXT:dam/mod_edit/locallang.xml:tx_dam_edit.title');
 }
예제 #17
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_funcwizards_webfunc', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_funcwizards_webfunc.php', 'LLL:EXT:func_wizards/locallang.php:mod_wizards');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:func_wizards/locallang_csh.xml');
}
예제 #18
0
	unset($TCA['pages']['columns']['tx_templavoila_next_to']['displayCond']);
}

	// Configure the referencing wizard to be used in the web_func module:
if (TYPO3_MODE=='BE')	{
	t3lib_extMgm::insertModuleFunction(
		'web_func',
		'tx_templavoila_referenceElementsWizard',
		t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_referenceelementswizard.php',
		'LLL:EXT:templavoila/locallang.xml:wiz_refElements',
		'wiz'
	);
	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',
예제 #19
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Adding Web>Info module for SEO management
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_seobasics_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_seobasics_modfunc1.php', 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:moduleFunction.tx_seobasics_modfunc1', 'function', 'online');
}
// Adding title tag field to pages TCA
$tmpCol = array('tx_seo_titletag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.titletag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim')), 'tx_seo_canonicaltag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.canonicaltag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim')));
t3lib_extMgm::addTCAcolumns('pages', $tmpCol, 1);
t3lib_extMgm::addTCAcolumns('pages_language_overlay', $tmpCol, 1);
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_seo_titletag;;;;, tx_seo_canonicaltag', 1, 'before:keywords');
t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_seo_titletag, tx_seo_canonicaltag, nav_title, tx_realurl_pathsegment;;;;', "4,5", 'after:subtitle');
$TCA['pages_language_overlay']['interface']['showRecordFieldList'] .= ',tx_seo_titletag, tx_seo_canonicaltag';
// Adding a static template TypoScript configuration from static/
t3lib_extMgm::addStaticFile($_EXTKEY, 'static', 'Metatags and XML Sitemap');
예제 #20
0
t3lib_div::loadTCA('fe_groups');
t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker;;;;1-1-1');
t3lib_div::loadTCA('tt_address_group');
t3lib_extMgm::addTCAcolumns('tt_address_group', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tt_address_group', 'tx_odsosm_marker;;;;1-1-1');
/* --------------------------------------------------
	New tables
-------------------------------------------------- */
$TCA['tx_odsosm_geocache'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_geocache', 'label' => 'zip', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => '', 'default_sortby' => 'ORDER BY zip', 'delete' => 'deleted', 'rootLevel' => 1, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_geocache.png'));
$TCA['tx_odsosm_layer'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_layer', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'delete' => 'deleted', 'rootLevel' => 1, 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_layer.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_marker');
$TCA['tx_odsosm_marker'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_marker', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_marker.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_track');
t3lib_extMgm::addToInsertRecords('tx_odsosm_track');
$TCA['tx_odsosm_track'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_track', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_track.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_vector');
t3lib_extMgm::addToInsertRecords('tx_odsosm_vector');
$TCA['tx_odsosm_vector'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_vector', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_vector.png'));
/* --------------------------------------------------
	Plugin
-------------------------------------------------- */
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addPlugin(array('LLL:EXT:ods_osm/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'list_type');
t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/pi1/flexform.xml');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages,recursive';
if (TYPO3_MODE == 'BE') {
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_odsosm_pi1_wizicon'] = t3lib_extMgm::extPath($_EXTKEY) . 'pi1/class.tx_odsosm_pi1_wizicon.php';
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_odsosm_geocodeWizard', t3lib_extMgm::extPath($_EXTKEY) . 'func_wizards/class.tx_odsosm_geocodeWizard.php', 'LLL:EXT:ods_osm/locallang.xml:wiz_geocode', 'wiz');
}
예제 #21
0
 t3lib_extMgm::insertModuleFunction('txdamM1_tools', 'tx_dam_tools_serviceinfo', PATH_txdam . 'modfunc_tools_serviceinfo/class.tx_dam_tools_serviceinfo.php', 'LLL:EXT:dam/lib/locallang.xml:serviceinfo');
 t3lib_extMgm::insertModuleFunction('txdamM1_tools', 'tx_dam_tools_mimetypes', PATH_txdam . 'modfunc_tools_mimetypes/class.tx_dam_tools_mimetypes.php', 'LLL:EXT:dam/lib/locallang.xml:mimetypes');
 // command modules (invisible)
 t3lib_extMgm::addModule('txdamM1', 'cmd', '', PATH_txdam . 'mod_cmd/');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_nothing', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_nothing.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_nothing.title');
 // file command modules (invisible)
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filerename', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filerename.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filerename.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filereplace', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filereplace.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filereplace.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filedelete', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filedelete.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filedelete.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filecopy', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filecopymove.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filecopy.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filemove', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filecopymove.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filemove.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_filenew', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_filenew.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filenew.title');
 // folder command modules (invisible)
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_foldernew', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_foldernew.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_foldernew.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_folderdelete', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_folderdelete.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filerename.title');
 t3lib_extMgm::insertModuleFunction('txdamM1_cmd', 'tx_dam_cmd_folderrename', PATH_txdam . 'mod_cmd/class.tx_dam_cmd_folderrename.php', 'LLL:EXT:dam/mod_cmd/locallang.xml:tx_dam_cmd_filerename.title');
 // add context menu
 $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_dam_cm_record', 'path' => PATH_txdam . 'binding/be/class.tx_dam_cm_record.php');
 $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_dam_cm_file', 'path' => PATH_txdam . 'binding/be/class.tx_dam_cm_file.php');
 // media folder type and icon
 if (t3lib_div::int_from_ver(TYPO3_version) < 4004000) {
     $ICON_TYPES['dam'] = array('icon' => PATH_txdam_rel . 'modules_dam.gif');
 } else {
     t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-dam', PATH_txdam_rel . 'modules_dam.gif');
 }
 $TCA['pages']['columns']['module']['config']['items'][] = array('Media', 'dam', PATH_txdam_rel . 'modules_dam.gif');
 // language hotlist
 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:dam/binding/tce/class.tx_dam_tce_languagehotlist.php:&tx_dam_tce_languagehotlist';
 tx_dam::register_action('tx_dam_action_renameFolder', 'EXT:dam/components/class.tx_dam_actionsFolder.php:&tx_dam_action_renameFolder');
 tx_dam::register_action('tx_dam_action_deleteFolder', 'EXT:dam/components/class.tx_dam_actionsFolder.php:&tx_dam_action_deleteFolder');
 tx_dam::register_action('tx_dam_action_newFolder', 'EXT:dam/components/class.tx_dam_actionsFolder.php:&tx_dam_action_newFolder');
예제 #22
0
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexQueue', array('index,initializeIndexQueue'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexMaintenance', array('index,cleanUpIndex,emptyIndex,reloadIndexConfiguration'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexFields', array('index'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Synonyms', array('index,addSynonyms,deleteSynonyms'));
    } else {
        t3lib_extMgm::addModulePath('tools_txsolrMAdmin', t3lib_extMgm::extPath($_EXTKEY) . 'ModAdmin/');
        t3lib_extMgm::addModule('tools', 'txsolrMAdmin', '', t3lib_extMgm::extPath($_EXTKEY) . 'ModAdmin/');
    }
    // registering reports
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['solr'] = array('Tx_Solr_Report_SchemaStatus', 'Tx_Solr_Report_SolrconfigStatus', 'Tx_Solr_Report_SolrConfigurationStatus', 'Tx_Solr_Report_SolrStatus', 'Tx_Solr_Report_SolrVersionStatus', 'Tx_Solr_Report_AccessFilterPluginInstalledStatus', 'Tx_Solr_Report_AllowUrlFOpenStatus', 'Tx_Solr_Report_FilterVarStatus');
    if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6000000) {
        // registering the index report with the reports module
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_solr']['index'] = array('title' => 'LLL:EXT:solr/Resources/Private/Language/ModuleReports.xml:index_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/ModuleReports.xml:index_description', 'report' => 'Tx_Solr_Report_IndexReport', 'icon' => 'EXT:solr/Report/tx_solr_report.gif');
    }
    // Index Inspector
    t3lib_extMgm::insertModuleFunction('web_info', 'Tx_Solr_ModIndex_IndexInspector', $GLOBALS['PATH_solr'] . 'ModIndex/IndexInspector.php', 'LLL:EXT:solr/Resources/Private/Language/Backend.xml:module_indexinspector');
    // register Clear Cache Menu hook
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearSolrConnectionCache'] = '&Tx_Solr_ConnectionManager';
    // register Clear Cache Menu ajax call
    $TYPO3_CONF_VARS['BE']['AJAX']['solr::clearSolrConnectionCache'] = 'Tx_Solr_ConnectionManager->updateConnections';
    // hooking into TCE Main to monitor record updates that may require reindexing by the index queue
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
    // hooking into TCE Main to monitor record updates that may require deleting documents from the index
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = '&Tx_Solr_GarbageCollector';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = '&Tx_Solr_GarbageCollector';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register click menu item to initialize the Solr connections for a single site
// visible for admin users only
t3lib_extMgm::addUserTSConfig('
예제 #23
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // add module
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_linkvalidator_ModFuncReport', t3lib_extMgm::extPath('linkvalidator') . 'modfuncreport/class.tx_linkvalidator_modfuncreport.php', 'LLL:EXT:linkvalidator/locallang.xml:mod_linkvalidator');
}
// Initialize Context Sensitive Help (CSH)
t3lib_extMgm::addLLrefForTCAdescr('linkvalidator', 'EXT:linkvalidator/modfuncreport/locallang_csh.xml');