/** * Lädt ein COnfigurations Objekt nach mit der TS aus der Extension * Dabei wird alles geholt was in "plugin.tx_$extKey", "lib.$extKey." und * "lib.links." liegt * * @param string $extKey Extension, deren TS Config geladen werden soll * @param string $extKeyTS Extension, deren Konfig innerhalb der * TS Config geladen werden soll. * Es kann also zb. das TS von mklib geladen werden aber darin die konfig für * das plugin von mkxyz * @param string $sStaticPath pfad zum TS * @param array $aConfig zusätzliche Konfig, die die default überschreibt * @param boolean $resolveReferences sollen referenzen die in lib. * und plugin.tx_$extKeyTS stehen aufgelöst werden? * @param boolean $forceTsfePreparation * @return tx_rnbase_configurations */ public static function loadConfig4BE($extKey, $extKeyTs = null, $sStaticPath = '', $aConfig = array(), $resolveReferences = false, $forceTsfePreparation = false) { $extKeyTs = is_null($extKeyTs) ? $extKey : $extKeyTs; if (!$sStaticPath) { $sStaticPath = '/static/ts/setup.txt'; } if (file_exists(t3lib_div::getFileAbsFileName('EXT:' . $extKey . $sStaticPath))) { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extKey . $sStaticPath . '">'); } tx_rnbase::load('tx_rnbase_configurations'); tx_rnbase::load('tx_rnbase_util_Misc'); $tsfePreparationOptions = array(); if ($forceTsfePreparation) { $tsfePreparationOptions['force'] = true; } // Ist bei Aufruf aus BE notwendig! (@TODO: sicher???) tx_rnbase_util_Misc::prepareTSFE($tsfePreparationOptions); $GLOBALS['TSFE']->config = array(); $cObj = t3lib_div::makeInstance('tslib_cObj'); $pageTsConfig = self::getPagesTSconfig(0); $tempConfig = $pageTsConfig['plugin.']['tx_' . $extKeyTs . '.']; $tempConfig['lib.'][$extKeyTs . '.'] = $pageTsConfig['lib.'][$extKeyTs . '.']; $tempConfig['lib.']['links.'] = $pageTsConfig['lib.']['links.']; if ($resolveReferences) { $GLOBALS['TSFE']->tmpl->setup['lib.'][$extKeyTs . '.'] = $tempConfig['lib.'][$extKeyTs . '.']; $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_' . $extKeyTs . '.'] = $pageTsConfig['plugin.']['tx_' . $extKeyTs . '.']; } $pageTsConfig = $tempConfig; $qualifier = $pageTsConfig['qualifier'] ? $pageTsConfig['qualifier'] : $extKeyTs; // möglichkeit die default konfig zu überschreiben $pageTsConfig = t3lib_div::array_merge_recursive_overrule($pageTsConfig, $aConfig); $configurations = new tx_rnbase_configurations(); $configurations->init($pageTsConfig, $cObj, $extKeyTs, $qualifier); return $configurations; }
/** * */ public function testGetPagesTsConfigLoadsTsAlwaysNewIfTsAdded() { $pageTSconfig = tx_mklib_util_TS::getPagesTSconfig(); $this->assertFalse(isset($pageTSconfig['plugin.']['tx_mklib']), 'TS schon geladen'); t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mklib/static/basic/setup.txt">'); $pageTSconfig = tx_mklib_util_TS::getPagesTSconfig(); $this->assertTrue(isset($pageTSconfig['plugin.']['tx_mklib']), 'TS nicht geladen'); }
$TYPO3_CONF_VARS['BE']['XCLASS']['ext/setup/mod/index.php'] = t3lib_extMgm::extPath($_EXTKEY) . 'ux_index.php'; // enable the RTE in the BE by default if (!$TYPO3_CONF_VARS['BE']['RTEenabled']) { $TYPO3_CONF_VARS['BE']['RTEenabled'] = 1; } // register the RTE to TYPO3 $TYPO3_CONF_VARS['BE']['RTE_reg'][$_EXTKEY] = array('objRef' => 'EXT:' . $_EXTKEY . '/class.tx_tinymce_rte_base.php:&tx_tinymce_rte_base'); // load default PageTS config from static t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/pageTSConfig.ts">'); // Get extension configuration $extConf = unserialize($_EXTCONF); t3lib_extMgm::addPageTSConfig(' RTE.default.loadConfig = ' . $extConf['loadConfig'] . ' RTE.default.pageLoadConfigFile = ' . $extConf['pageLoadConfigFile']); if ($extConf['loadConfig'] === 'EXT:tinymce_rte/static/full.ts') { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/full_include.ts">'); } // load default SetupTS config from static t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/setupTSConfig.ts">', 43); //add linkhandler for "record" $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['record'] = 'EXT:tinymce_rte/hooks/class.tx_tinymce_rte_handler.php:&tx_tinymce_rte_handler'; // Enable preStartPageHook hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_header.php:&tx_tinymce_rte_header->preStartPageHook'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/sysext/feeditadvanced/view/class.tx_feeditadvanced_adminpanel.php']['addIncludes'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_feeditadv.php:&tx_tinymce_rte_feeditadv'; // user function to force typolink creation of every link if (!class_exists('user_tinymce_rte')) { class user_tinymce_rte { function isNotAnchor($content, $conf) { return preg_match('/\\s*href\\s*=\\s*"[^"]+"\\s*/i', $content) ? 1 : 0;
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addPageTSConfig(' RTE.default.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css RTE.default.FE.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css ');
<?php if (!defined("TYPO3_MODE")) { die("Access denied."); } t3lib_extMgm::addUserTSConfig(' options.saveDocNew.tx_vm19news_news=1 '); t3lib_extMgm::addPageTSConfig(' # *************************************************************************************** # CONFIGURATION of RTE in table "tx_vm19news_news", field "abstract" # *************************************************************************************** RTE.config.tx_vm19news_news.abstract { //hidePStyleItems = H1, H4, H5, H6 proc.exitHTMLparser_db=1 proc.exitHTMLparser_db { keepNonMatchedTags=1 tags.font.allowedAttribs= color tags.font.rmTagIfNoAttrib = 1 tags.font.nesting = global } */ } '); ## Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\r\n\ttt_content.CSS_editor.ch.tx_vm19news_pi1 = < plugin.tx_vm19news_pi1.CSS_editor\r\n", 43); t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_vm19news_pi1.php", "_pi1", "list_type", 1); t3lib_extMgm::addTypoScript($_EXTKEY, "setup", "\r\n\ttt_content.shortcut.20.0.conf.tx_vm19news_news = < plugin." . t3lib_extMgm::getCN($_EXTKEY) . "_pi1\r\n\ttt_content.shortcut.20.0.conf.tx_vm19news_news.CMD = singleView\r\n", 43);
$TYPO3_CONF_VARS['BE']['RTEenabled'] = 1; } // register the RTE to TYPO3 $TYPO3_CONF_VARS['BE']['RTE_reg'][$_EXTKEY] = array('objRef' => 'EXT:' . $_EXTKEY . '/class.tx_tinymce_rte_base.php:&tx_tinymce_rte_base'); // load default PageTS config from static t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/pageTSConfig.ts">'); // Get extension configuration $extConf = unserialize($_EXTCONF); // set default if value is undefined (for backward compatibility as most users will have it set empty) if ($extConf['pageLoadConfigFile'] === '') { $extConf['pageLoadConfigFile'] = 'EXT:tinymce_rte/static/pageLoad.ts'; } // load mandatory pageLoadConfigFile t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:' . $extConf['pageLoadConfigFile'] . '">'); if ($extConf['loadConfig'] !== '') { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:' . $extConf['loadConfig'] . '">'); } // load default SetupTS config from static t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/setupTSConfig.ts">', 43); //add linkhandler for "record" $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['record'] = 'EXT:tinymce_rte/hooks/class.tx_tinymce_rte_handler.php:&tx_tinymce_rte_handler'; // Enable preStartPageHook hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_header.php:&tx_tinymce_rte_header->preStartPageHook'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['EXT:feeditadvanced/view/class.tx_feeditadvanced_adminpanel.php']['addIncludes'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_feeditadv.php:&tx_tinymce_rte_feeditadv'; // user function to force typolink creation of every link if (!class_exists('user_tinymce_rte', false)) { class user_tinymce_rte { function isNotAnchor($content, $conf) { return preg_match('/\\s*href\\s*=\\s*"[^"]+"\\s*/i', $content) ? 1 : 0;
sendToReviewers = 1 to { /* # allows to send additional mails to defined email addresses 0 { name = Example info mail mail = info@example.com } */ } } // mail when a review was updated reviewChanged { templateFile = EXT:contentstage/Resources/Private/Backend/Mails/ReviewChanged.html } // mail when a review was created reviewCreated { templateFile = EXT:contentstage/Resources/Private/Backend/Mails/ReviewCreated.html } // mail when a review was completed reviewPushed { templateFile = EXT:contentstage/Resources/Private/Backend/Mails/ReviewPushed.html } } } EOD; t3lib_extMgm::addPageTSConfig($pageTS); $TYPO3_CONF_VARS['EXTCONF']['extbase']['typeConverters'][] = 'Tx_Contentstage_Property_TypeConverter_DbrecordConverter';
linkProc { target = _blank jumpurl = {$styles.content.uploads.jumpurl} jumpurl.secure = {$styles.content.uploads.jumpurl_secure} removePrependedNumbers = 1 alternativeIconPath= iconCObject = IMAGE iconCObject.makeThumbs=0 iconCObject.file.import.data = register : ICON_REL_PATH iconCObject.file.width = 150 } stdWrap{ editIcons = tt_content: media, layout, filelink_size editIcons.iconTitle.data=LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.filelist prefixComment = 2 | File list: }; } ', 43); $allow_the_read_from_path = ''; if (!$GLOBALS['T3_VAR']['ext']['css_filelinks']['setup']['allow_read_from_path']) { $allow_the_read_from_path = 'TCEFORM.tt_content.select_key.types.uploads.disabled=1 '; } t3lib_extMgm::addPageTSConfig('TCEFORM.tt_content.table_border.types.uploads.disabled=1 TCEFORM.tt_content.table_cellspacing.types.uploads.disabled=1 TCEFORM.tt_content.table_cellpadding.types.uploads.disabled=1 TCEFORM.tt_content.table_bgColor.types.uploads.disabled=1 ' . $allow_the_read_from_path);
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:linkvalidator/res/pagetsconfig.txt">'); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_linkvalidator_tasks_Validator'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tasks.validate.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:tasks.validate.description', 'additionalFields' => 'tx_linkvalidator_tasks_ValidatorAdditionalFieldProvider'); if (!is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'])) { $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'] = array(); } $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['db'] = 'tx_linkvalidator_linktype_Internal'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['file'] = 'tx_linkvalidator_linktype_File'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['external'] = 'tx_linkvalidator_linktype_External'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['linkhandler'] = 'tx_linkvalidator_linktype_LinkHandler';
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Add default page TSconfig t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:nbobase/Configuration/TSconfig/page/default/be-editing.txt">'); t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:nbobase/Configuration/TSconfig/page/default/language.txt">'); t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:nbobase/Configuration/TSconfig/page/default/permissions.txt">'); t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:nbobase/Configuration/TSconfig/page/default/rte.txt">');
if (Tx_News_Utility_Compatibility::convertVersionNumberToInteger(TYPO3_version) < '4006000') { // Define database backend as backend for 4.5 and below (default in 4.6) if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['backend'])) { $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['backend'] = 't3lib_cache_backend_DbBackend'; } // Define data and tags table for 4.5 and below (obsolete in 4.6) if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options'])) { $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options'] = array(); } if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options']['cacheTable'])) { $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options']['cacheTable'] = 'cf_news_categorycache'; } if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options']['tagsTable'])) { $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['options']['tagsTable'] = 'cf_news_categorycache'; } } // Class cache if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['class_cache'])) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['class_cache'] = array('backend' => 't3lib_cache_backend_FileBackend', 'frontend' => 't3lib_cache_frontend_PhpFrontend'); } /* =========================================================================== Add soft reference parser =========================================================================== */ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['news_externalurl'] = 'EXT:' . $_EXTKEY . '/Classes/Database/SoftReferenceIndex.php:&Tx_News_Database_SoftReferenceIndex'; /* =========================================================================== Add TSconfig =========================================================================== */ // For linkvalidator if (t3lib_extMgm::isLoaded('linkvalidator')) { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TSconfig/Page/mod.linkvalidator.txt">'); }
t3lib_extMgm::addPageTSConfig(' # RTE mode in table "tt_news" RTE.config.tt_news.bodytext.proc.overruleMode = ts_css TCEFORM.tt_news.bodytext.RTEfullScreenWidth = 100% mod.web_txttnewsM1 { catmenu { expandFirst = 1 show { cb_showEditIcons = 1 cb_expandAll = 1 cb_showHiddenCategories = 1 btn_newCategory = 1 } } list { limit = 15 pidForNewArticles = fList = pid,uid,title,datetime,archivedate,tstamp,category;author icon = 1 searchFields = uid,title,short,bodytext # configures the behavior of the record-title link. Possible values: # edit: link editform, view: link FE singleView, any other value: no link clickTitleMode = edit noListWithoutCatSelection = 1 show { cb_showOnlyEditable = 1 cb_showThumbs = 1 search = 1 } imageSize = 50 } defaultLanguageLabel = } ');
t3lib_extMgm::addPageTSConfig(' tx_thexttable { # where to get the definitions from # possible values are: # service -> definitions will be loaded from service-class # tsconfig -> definitions will be loaded from TSconfig (User / Page) # both -> definitions will be loaded from service-class and can be modified by TS definitions = service # if this is set to 1, al linefeeds will be converted to "<br />" by saving the table convertNL2BR = 1 # here we define the tagdefinitions (see documentation for closer informations) # All these definitions are commented out because it could be confusing if you # set the loadtype to tsconfig and nothing changes beecause this is the same as the # definition in the xmlfile of the serviceclass. # additionalDefinitions { # all { # universal { # class { # type = string # tab = stylesheets # } # style { # type = string # tab = stylesheets # } # id { # type = string # tab = general # } # title { # type = string # tab = general # } # dir { # type = set # tab = general # values { # 1 = ltr # 2 = rtl # } # } # onclick { # type = string # tab = script # } # ondblclick { # type = string # tab = script # } # onmousedown { # type = string # tab = script # } # onmouseup { # type = string # tab = script # } # onmouseover { # type = string # tab = script # } # onmousemove { # type = string # tab = script # } # onmouseout { # type = string # tab = script # } # onkeypress { # type = string # tab = script # } # onkeydown { # type = string # tab = script # } # onkeyup { # type = string # tab = script # } # } # } # parent { # table { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # } # } # border { # type = int # tab = border # } # width { # type = size # tab = general # } # bgcolor { # type = color # tab = general # } # cellpadding { # type = int # tab = general # } # cellspacing { # type = int # tab = general # } # summary { # type = string # tab = general # } # frame { # type = set # tab = border # values { # 1 = void # 2 = above # 3 = below # 4 = hsides # 5 = lhs # 6 = rhs # 7 = vsides # 8 = box # 9 = border # } # } # rules { # type = set # tab = border # values { # 1 = none # 2 = tabs # 3 = rows # 4 = cols # 5 = all # } # } # } # } # table { # caption { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # } # } # } # } # tab { # thead { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # } # tbody { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # } # tfoot { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # } # } # row { # tr { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # } # } # cell { # td { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # bgcolor { # type = color # tab = general # } # colspan { # type = int # tab = general # } # rowspan { # type = int # tab = general # } # height { # type = size # tab = general # } # width { # type = size # tab = general # } # nowrap { # type = empty # tab = general # } # } # th { # align { # type = set # tab = general # values { # 1 = left # 2 = center # 3 = right # 4 = justify # } # } # valign { # type = set # tab = general # values { # 1 = top # 2 = middle # 3 = bottom # 4 = baseline # } # } # bgcolor { # type = color # tab = general # } # colspan { # type = int # tab = general # } # rowspan { # type = int # tab = general # } # height { # type = size # tab = general # } # width { # type = size # tab = general # } # nowrap { # type = empty # tab = general # } # } # } # } } ');
$icons = array('clearVarnishCache' => t3lib_extMgm::extRelPath('vcc') . 'Resources/Public/Icons/CachePlugin.png'); t3lib_SpriteManager::addSingleIcons($icons, 'vcc'); // Add default module settings t3lib_extMgm::addPageTSConfig(' mod.vcc { pages = 1 pages { typolink { parameter.field = uid } } pages_language_overlay = 1 pages_language_overlay { typolink { parameter.field = pid additionalParams = &L={field:sys_language_uid} additionalParams.insertData = 1 } } tt_content = 1 tt_content { typolink { parameter.field = pid additionalParams = &L={field:sys_language_uid} additionalParams.insertData = 1 } } } ');
$conf = $confArr[$table . '.']; // RETURN : current configuration is disabled if ($conf['disabled']) { return; } // RETURN : current configuration is disabled // Init tsConfig $tsConfig = ' mod.tx_linkhandler { ' . $table . ' { label = ' . $conf['label'] . ' listTables = ' . $conf['listTables'] . ' %onlyPids% } } RTE.default.tx_linkhandler.' . $table . ' < mod.tx_linkhandler.' . $table . ' '; switch (true) { case !empty($conf['onlyPids']): $onlyPids = 'onlyPids = ' . $conf['onlyPids']; break; case empty($conf['onlyPids']): default: $onlyPids = null; break; } $tsConfig = str_replace('%onlyPids%', $onlyPids, $tsConfig); t3lib_extMgm::addPageTSConfig($tsConfig); return;
<?php # TYPO3 CVS ID: $Id: ext_localconf.php 5928 2007-07-12 11:20:33Z kasper $ if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Adding the two plugins TypoScript: t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_templavoila_pi1.php', '_pi1', 'CType', 1); t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', 'tt_content.templavoila_pi1.10 >', 43); // Use templavoila's wizard instead the default create new page wizard t3lib_extMgm::addPageTSConfig(' mod.web_list.newPageWiz.overrideWithExtension = templavoila mod.web_list.newContentWiz.overrideWithExtension = templavoila '); // Use templavoila instead of the default page module t3lib_extMgm::addUserTSConfig(' options.overridePageModule = web_txtemplavoilaM1 mod.web_txtemplavoilaM1.sideBarEnable = 1 '); // Adding Page Template Selector Fields to root line: $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_templavoila_ds,tx_templavoila_to,tx_templavoila_next_ds,tx_templavoila_next_to'; // Register our classes at a the hooks: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['recordEditAccessInternals']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_access.php:&tx_templavoila_access->recordEditAccessInternals'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['tx_templavoila_unusedce'] = array('EXT:templavoila/class.tx_templavoila_unusedce.php:tx_templavoila_unusedce');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addPageTSConfig(' # *************************************************************************************** # CONFIGURATION of RTE in table "tx_rlmptvnotes_notes", field "note" # *************************************************************************************** RTE.config.tx_rlmptvnotes_notes.note { hidePStyleItems = H1, H4, H5, H6 proc.exitHTMLparser_db = 1 proc.exitHTMLparser_db { keepNonMatchedTags = 1 tags.font.allowedAttribs = color tags.font.rmTagIfNoAttrib = 1 tags.font.nesting = global } } '); // Register our class at some hooks in templavoila: $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['templavoila']['mod1']['renderFrameworkClass'][] = 'EXT:rlmp_tvnotes/class.tx_rlmptvnotes_templavoilamod1.php:tx_rlmptvnotes_templavoilamod1'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['templavoila']['mod1']['menuConfigClass'][] = 'EXT:rlmp_tvnotes/class.tx_rlmptvnotes_templavoilamod1.php:tx_rlmptvnotes_templavoilamod1'; // Register our class at a hook in TCEmain: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:rlmp_tvnotes/class.tx_rlmptvnotes_tcemain.php:tx_rlmptvnotes_tcemain';
<?php # TYPO3 CVS ID: $Id$ if (!defined('TYPO3_MODE')) { die('Access denied.'); } $_EXTCONF = unserialize($_EXTCONF); // unserializing the configuration so we can use it here: if ($_EXTCONF['setPageTSconfig'] || !$_EXTCONF) { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/pageTSconfig.txt">'); } if ($_EXTCONF['removePositionTypes'] || !$_EXTCONF) { t3lib_extMgm::addPageTSConfig(' TCEFORM.tt_content.imageorient.types.image.removeItems = 8,9,10,17,18,25,26 '); } $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_accessibility'] = array('title' => 'CSS Styled Content: Accessibility improvements', 'version' => 3009000, 'description' => '<p>The rendering of the following elements will change: <ul><li><strong>tt_content.menu</strong> (used f.e. for sitemaps): Instead of div-tags, lists are used now.</li> <li><strong>tt_content.mailform</strong>: Mailforms do not use tables anymore, instead, they use the div-tag. Besides that, mailforms are accessible now.</li> <li><strong>The p-tag</strong> has been removed from all table cells.</li> <li><strong>CSS based "image" and "text with image"</strong><br />As the extension cron_cssstyledimgtext has been merged into the core, rendering of the content elements "image" and "text with image" has been changed to be CSS instead of table based. Read the <a href="http://wiki.typo3.org/index.php/TYPO3_4.0" target="_blank">4.0 release notes</a> for further information.</li></ul>', 'description_acknowledge' => 'You will have to update your stylesheets to comply with these changes.'); $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_pagetargets'] = array('title' => 'CSS Styled Content: Default targets for non-frame pages', 'version' => 4002000, 'description' => '<p>The default page target is empty (so no target is generated). If you use frames, you have to set target to "page" in Constants.</p>'); $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_menuhtmlspecialchars'] = array('title' => 'CSS Styled Content: htmlspecialchars in menu content elements', 'version' => 4003000, 'description' => '<p>Page titles will get htmlspecialchar\'ed when rendered in "Sitemap/menu" content elements, to avoid generating invalid XHTML.</p>'); $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_clearerdivsafterintexttextpicelements'] = array('title' => 'CSS Styled Content: clear divs, changed row space, corrected margins', 'version' => 4004000, 'description' => '<ul><li>Clear divs will be generated by default for in-text right or left positioned textpic elements.</li><li>The default row space changes to 10px, to be in line with col space and text margin.</li><li>Rendering bugs with wrong margins were fixed (Default CSS changed).</li></ul>'); // Register ourselves as "content rendering template" (providing the hooks of "static template 43" = content (default) ) $TYPO3_CONF_VARS['FE']['contentRenderingTemplates'] = array('cssstyledcontent/static/', 'cssstyledcontent/static/v4.3/', 'cssstyledcontent/static/v4.2/', 'cssstyledcontent/static/v3.9/', 'cssstyledcontent/static/v3.8/');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:countrymanager/Configuration/TSconfig/defaultlanguage.txt">'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Country', 'Display current country'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Countries', 'Display list of countries'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Languages', 'Display list of languages'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/ExtensionConfiguration', 'Country Manager – Extension Configuration'); // moved to ext_typoscript_setup.txt t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/AutomaticLanguageConfiguration', 'Country Manager – Automatic Language Configuration (optional)'); if (TYPO3_MODE === 'BE') { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'tools', 'countrymanagertsupdate', '', array('Backend' => 'updatetyposcript'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_countrymanagertsupdate.xml')); } $tmp_countrymanager_columns = array('title' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.title', 'config' => array('type' => 'input', 'size' => 15, 'eval' => 'trim,required')), 'language' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.language', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'static_languages', 'size' => '1', 'maxitems' => '1', 'minitems' => '1', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'menulabel' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.menulabel', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim,required')), 'country' => array('exclude' => 1, 'label' => 'LLL:EXT:countrymanager/Resources/Private/Language/locallang_db.xml:tx_countrymanager_domain_model_countrylanguage.country', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'static_countries', 'size' => '1', 'maxitems' => '1', 'minitems' => '1', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest'))))); t3lib_extMgm::addTCAcolumns('sys_language', $tmp_countrymanager_columns, 1); t3lib_extMgm::addToAllTCAtypes('sys_language', 'title,language,country,menulabel', '', 'after:title');
<?php if (!defined("TYPO3_MODE")) { die("Access denied."); } t3lib_extMgm::addPageTSConfig(' toto=toto '); t3lib_extMgm::addUserTSConfig(' toto=toto '); ## Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcubehn02_pi1 = < plugin.tx_dlcubehn02_pi1.CSS_editor\n", 43); t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_dlcubehn02_pi1.php", "_pi1", "list_type", 1); ## Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcubehn02_pi2 = < plugin.tx_dlcubehn02_pi2.CSS_editor\n", 43); t3lib_extMgm::addPItoST43($_EXTKEY, "pi2/class.tx_dlcubehn02_pi2.php", "_pi2", "list_type", 1); ## Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcubehn02_pi3 = < plugin.tx_dlcubehn02_pi3.CSS_editor\n", 43); t3lib_extMgm::addPItoST43($_EXTKEY, "pi3/class.tx_dlcubehn02_pi3.php", "_pi3", "list_type", 1);
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Nn.' . $_EXTKEY, 'T3responsive', array(), array()); // ---------------------------------------------------- // Plugin einfügen t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_t3responsive_pi1.php', '_pi1', 'list_type', 1); t3lib_extMgm::addPageTSConfig(' <INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3responsive/ext_pageTSconfig.txt"> ');
$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableAccessibilityIcons'] = $_EXTCONF['enableAccessibilityIcons'] ? $_EXTCONF['enableAccessibilityIcons'] : 0; if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableAccessibilityIcons']) { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/res/accessibilityicons/pageTSConfig.txt">'); } // Register features that use the style attribute $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['allowStyleAttribute'] = $_EXTCONF['allowStyleAttribute'] ? $_EXTCONF['allowStyleAttribute'] : 0; if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['allowStyleAttribute']) { $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color'] = array(); $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color']['objectReference'] = 'EXT:' . $_EXTKEY . '/extensions/TYPO3Color/class.tx_rtehtmlarea_typo3color.php:&tx_rtehtmlarea_typo3color'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color']['disableInFE'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['SelectFont'] = array(); $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['SelectFont']['objectReference'] = 'EXT:' . $_EXTKEY . '/extensions/SelectFont/class.tx_rtehtmlarea_selectfont.php:&tx_rtehtmlarea_selectfont'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['SelectFont']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['SelectFont']['disableInFE'] = 0; t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/res/style/pageTSConfig.txt">'); } $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TextIndicator'] = array(); $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TextIndicator']['objectReference'] = 'EXT:' . $_EXTKEY . '/extensions/TextIndicator/class.tx_rtehtmlarea_textindicator.php:&tx_rtehtmlarea_textindicator'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TextIndicator']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TextIndicator']['disableInFE'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['InsertSmiley'] = array(); $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['InsertSmiley']['objectReference'] = 'EXT:' . $_EXTKEY . '/extensions/InsertSmiley/class.tx_rtehtmlarea_insertsmiley.php:&tx_rtehtmlarea_insertsmiley'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['InsertSmiley']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['InsertSmiley']['disableInFE'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['Language'] = array(); $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['Language']['objectReference'] = 'EXT:' . $_EXTKEY . '/extensions/Language/class.tx_rtehtmlarea_language.php:&tx_rtehtmlarea_language'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['Language']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['Language']['disableInFE'] = 0; // Spell checking configuration $TYPO3_CONF_VARS['FE']['eID_include']['rtehtmlarea_spellchecker'] = 'EXT:' . $_EXTKEY . '/pi1/class.tx_rtehtmlarea_pi1.php';
define('TYPO3_VERSION_INTEGER', \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version)); } else { if (class_exists('t3lib_utility_VersionNumber')) { define('TYPO3_VERSION_INTEGER', t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version)); } else { define('TYPO3_VERSION_INTEGER', t3lib_div::int_from_ver(TYPO3_version)); } } // register cli-script if (TYPO3_MODE == 'BE') { $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/cli/class.cli_kesearch.php', '_CLI_kesearch'); } // include filterlist class and pageTSconfig.txt and add plugin if (TYPO3_VERSION_INTEGER < 6002000) { include_once t3lib_extMgm::extPath($_EXTKEY) . '/Classes/Backend/class.user_filterlist.php'; t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ke_search/pageTSconfig.txt">'); t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_kesearch_pi1.php', '_pi1', 'list_type', 0); t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_kesearch_pi2.php', '_pi2', 'list_type', 0); t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_kesearch_pi3.php', '_pi3', 'list_type', 0); } else { include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . '/Classes/Backend/class.user_filterlist.php'; TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ke_search/pageTSconfig.txt">'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_kesearch_pi1.php', '_pi1', 'list_type', 0); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi2/class.tx_kesearch_pi2.php', '_pi2', 'list_type', 0); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi3/class.tx_kesearch_pi3.php', '_pi3', 'list_type', 0); } // use hooks for generation of sortdate values $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerAdditionalFields'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyPagesIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyYACIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyDAMIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate';
# CONFIGURATION of RTE in table "tx_ketroubletickets_tickets", field "description" # *************************************************************************************** RTE.config.tx_ketroubletickets_tickets.description { hidePStyleItems = H1, H4, H5, H6 proc.exitHTMLparser_db=1 proc.exitHTMLparser_db { keepNonMatchedTags=1 tags.font.allowedAttribs= color tags.font.rmTagIfNoAttrib = 1 tags.font.nesting = global } } '); t3lib_extMgm::addPageTSConfig(' # *************************************************************************************** # CONFIGURATION of RTE in table "tx_ketroubletickets_comments", field "content" # *************************************************************************************** RTE.config.tx_ketroubletickets_comments.content { hidePStyleItems = H1, H4, H5, H6 proc.exitHTMLparser_db=1 proc.exitHTMLparser_db { keepNonMatchedTags=1 tags.font.allowedAttribs= color tags.font.rmTagIfNoAttrib = 1 tags.font.nesting = global } } '); // register eID script $TYPO3_CONF_VARS['FE']['eID_include']['kett'] = 'EXT:ke_troubletickets/eID/class.tx_ketroubletickets_eid.php';
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('EventIndex' => 'dispatch', 'Event' => 'dispatch', 'Category' => 'show'), array()); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('EventAdministration' => 'list,new,create,edit,update,delete'), array('EventAdministration' => 'list,new,create,edit,update,delete')); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_CzSimpleCal_Scheduler_Index'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.label', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.description', 'additionalFields' => 'tx_czsimplecal_scheduler_index'); // add default pageTSConfig t3lib_extMgm::addPageTSConfig(file_get_contents(t3lib_extMgm::extPath('cz_simple_cal') . 'Configuration/TSconfig/default.txt'));
// Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', ' plugin.tx_dam_tsfemediatag { procFields { file_size = 1 } tag { current = 1 typolink.parameter.data = parameters : allParams typolink.extTarget = {$styles.content.links.extTarget} typolink.target = {$styles.content.links.target} typolink.title { dataWrap = { field : txdam_file_name } ({ field : txdam_file_size }) htmlspecialchars = 1 } parseFunc.constants =1 } } lib.parseFunc.tags.media = < plugin.tx_dam_tsfemediatag lib.parseFunc_RTE.tags.media = < plugin.tx_dam_tsfemediatag // content-default?: tt_content.text.20.parseFunc.tags.media = < plugin.tx_dam_tsfemediatag ', 43); // register rendering plugin t3lib_extMgm::addPItoST43($_EXTKEY, 'binding/mediatag/class.tx_dam_tsfemediatag.php', '_tsfemediatag', '', 1); // Add default Page TSonfig RTE configuration for enabling media links t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/binding/mediatag/pageTSConfig.txt">'); // register RTE transformation for media tag $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['transformation']['txdam_media'] = 'EXT:dam/binding/mediatag/class.tx_dam_rtetransform_mediatag.php:&tx_dam_rtetransform_mediatag'; $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['transformation']['ts_links'] = 'EXT:dam/binding/mediatag/class.tx_dam_rtetransform_ahref.php:&tx_dam_rtetransform_ahref';
t3lib_extMgm::addPageTSConfig(' mod.wizards.newContentElement.wizardItems { common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common common.elements { text { icon = gfx/c_wiz/regular_text.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_description tt_content_defValues { CType = text } } textpic { icon = gfx/c_wiz/text_image_right.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_description tt_content_defValues { CType = textpic imageorient = 17 } } image { icon = gfx/c_wiz/images_only.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description tt_content_defValues { CType = image imagecols = 2 } } bullets { icon = gfx/c_wiz/bullet_list.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_description tt_content_defValues { CType = bullets } } table { icon = gfx/c_wiz/table.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_description tt_content_defValues { CType = table } } } common.show = text,textpic,image,bullets,table special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special special.elements { uploads { icon = gfx/c_wiz/filelinks.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_description tt_content_defValues { CType = uploads } } multimedia { icon = gfx/c_wiz/multimedia.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_description tt_content_defValues { CType = multimedia } } media { icon = gfx/c_wiz/multimedia.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_description tt_content_defValues { CType = media } } menu { icon = gfx/c_wiz/sitemap2.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_description tt_content_defValues { CType = menu menu_type = 2 } } html { icon = gfx/c_wiz/html.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_description tt_content_defValues { CType = html } } div { icon = gfx/c_wiz/div.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_description tt_content_defValues { CType = div } } } special.show = uploads,media,menu,html,div forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms forms.elements { mailform { icon = gfx/c_wiz/mailform.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_description tt_content_defValues { CType = mailform bodytext ( # Example content: Name: | *name = input,40 | Enter your name here Email: | *email=input,40 | Address: | address=textarea,40,5 | Contact me: | tv=check | 1 |formtype_mail = submit | Send form! |html_enabled=hidden | 1 |subject=hidden| This is the subject ) } } search { icon = gfx/c_wiz/searchform.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_description tt_content_defValues { CType = search } } login { icon = gfx/c_wiz/login_form.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description tt_content_defValues { CType = login } } } forms.show = mailform,search,login plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins plugins.elements { general { icon = gfx/c_wiz/user_defined.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description tt_content_defValues.CType = list } } plugins.show = * } ');
plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins plugins.elements { general { icon = gfx/c_wiz/user_defined.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description tt_content_defValues.CType = list } } plugins.show = * } # set to tabs for tab rendering templavoila.wizards.newContentElement.renderMode = '); if (t3lib_div::compat_version('4.3')) { t3lib_extMgm::addPageTSConfig(' templavoila.wizards.newContentElement.wizardItems.special.elements.media { icon = gfx/c_wiz/multimedia.gif title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_title description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_description tt_content_defValues { CType = media } } templavoila.wizards.newContentElement.wizardItems.special.show = uploads,media,menu,html,div '); } $TYPO3_CONF_VARS['BE']['AJAX']['tx_templavoila_mod1_ajax::moveRecord'] = 'EXT:templavoila/mod1/class.tx_templavoila_mod1_ajax.php:tx_templavoila_mod1_ajax->moveRecord'; $TYPO3_CONF_VARS['BE']['AJAX']['tx_templavoila_cm1_ajax::getDisplayFileContent'] = 'EXT:templavoila/cm1/class.tx_templavoila_cm1_ajax.php:tx_templavoila_cm1_ajax->getDisplayFileContent';
} if (!defined('PATH_txdam_siteRel')) { define('PATH_txdam_siteRel', t3lib_extMgm::siteRelPath('dam')); } // that's the base API require_once PATH_txdam . 'lib/class.tx_dam.php'; // include basic image stuff because it's used so often require_once PATH_txdam . 'lib/class.tx_dam_image.php'; // get extension setup $TYPO3_CONF_VARS['EXTCONF']['dam']['setup'] = unserialize($_EXTCONF); if ($TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['tsconfig'] === 'default') { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:dam/tsconfig/default.txt">'); } elseif ($TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['tsconfig'] === 'minimal') { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:dam/tsconfig/minimal.txt">'); } elseif ($TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['tsconfig'] === 'example') { t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:dam/tsconfig/example.txt">'); } // set some config values from extension setup tx_dam::config_setValue('setup.devel', $TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['devel']); // register default icons tx_dam::register_fileIconPath(PATH_txdam . 'i/18/', 'FE'); tx_dam::register_fileIconPath(PATH_txdam . 'i/18/', 'BE'); // would register TYPO3's default file icons # tx_dam::register_fileIconPath(PATH_typo3.'gfx/fileicons/', 'BE'); // field templates for usage in other tables to link media records require_once PATH_txdam . 'tca_media_field.php'; // register XCLASS of t3lib_extfilefunc to pipe all TCE stuff through DAM version $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_extfilefunc.php'] = PATH_txdam . 'lib/class.tx_dam_tce_file.php'; // setup interface to htmlArea RTE if ($TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['htmlAreaBrowser']) { require_once PATH_txdam . 'compat/ext_localconf.php';
<?php if (!defined("TYPO3_MODE")) { die("Access denied."); } t3lib_extMgm::addPageTSConfig(' # default page TSconfig '); t3lib_extMgm::addUserTSConfig(' # default user TSconfig '); ## Extending TypoScript from static template uid=43 to set up userdefined tag: t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_drwiki_pi1 = < plugin.tx_drwiki_pi1.CSS_editor\n", 43); t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_drwiki_pi1.php", "_pi1", "list_type", 0); t3lib_extMgm::addTypoScript($_EXTKEY, "setup", "\n\ttt_content.shortcut.20.0.conf.tx_drwiki_pages = < plugin." . t3lib_extMgm::getCN($_EXTKEY) . "_pi1\n\ttt_content.shortcut.20.0.conf.tx_drwiki_pages.CMD = singleView\n", 43); // add handler for eID and ajax based search $TYPO3_CONF_VARS['FE']['eID_include']['tx_drwiki_search'] = 'EXT:dr_wiki/lib/class.eid_ajax.search.php';