本文整理匯總了PHP中TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript方法的典型用法代碼示例。如果您正苦於以下問題:PHP ExtensionManager::addTypoScript方法的具體用法?PHP ExtensionManager::addTypoScript怎麽用?PHP ExtensionManager::addTypoScript使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TYPO3\CMS\Core\Extension\ExtensionManager
的用法示例。
在下文中一共展示了ExtensionManager::addTypoScript方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Extending TypoScript from static template uid=43 to set up parsing of custom file abstraction attributes on img tag
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '
#******************************************************
# Including library for processing of custom file abstraction attributes on img tag
#******************************************************
##includeLibs.tx_rtehtmlarea_renderimgtag = EXT:rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_renderimgtag.php
lib.parseFunc_RTE {
##tags.img = TEXT
##tags.img {
## current = 1
## preUserFunc = tx_rtehtmlarea_renderimgtag->renderImgageAttributes
##}
nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib {
data-htmlarea-file-uid.unset = 1
data-htmlarea-file-table.unset = 1
}
}
', 43);
示例2:
includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
userFunc = tx_felogin_pi1->main
}
');
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '
# Setting ' . $_EXTKEY . ' plugin TypoScript
' . $pluginContent);
$addLine = '
tt_content.login = COA
tt_content.login {
10 = < lib.stdheader
20 >
20 = < plugin.tx_felogin_pi1
}
';
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
\TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.forms {
elements {
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
}
}
}
show :=addToList(login)
}
');