本文整理汇总了PHP中t3lib_extMgm::addPageTSConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::addPageTSConfig方法的具体用法?PHP t3lib_extMgm::addPageTSConfig怎么用?PHP t3lib_extMgm::addPageTSConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::addPageTSConfig方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadConfig4BE
/**
* 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;
}
示例2: testGetPagesTsConfigLoadsTsAlwaysNewIfTsAdded
/**
*
*/
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');
}
示例3: array
$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;
示例4: die
<?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
');
示例5: die
<?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);
示例6: array
$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;
示例7:
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';
示例8:
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);
示例9: die
<?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';
示例10: die
<?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">');
示例11: array
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">');
}
示例12:
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 =
}
');
示例13: TSconfig
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
# }
//.........这里部分代码省略.........
示例14: array
$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
}
}
}
');
示例15: die
<?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';