后端布局与TYPO3 V10.4中的Fluidtemplate



我试图找出,在TYPO3 V10.4与后端布局有什么变化。我有一个站点包扩展,这是与TYPO3 V9.5和更早的工作与以下排版配置:

page.10 = FLUIDTEMPLATE
page.10 {
partialRootPath = {$resDir}/Private/Partials
layoutRootPath = {$resDir}/Private/Layouts
file.stdWrap.cObject = CASE
file.stdWrap.cObject {
key.data = levelfield:-1, backend_layout_next_level, slide
key.override.field = backend_layout
# Default Template
default = TEXT
default.value = {$resDir}/Private/Templates/Grid_12_Template.html
## weitere Templates
pagets__1 = TEXT
pagets__1.value = {$resDir}/Private/Templates/Grid_12_Template.html
pagets__2 = TEXT
pagets__2.value = {$resDir}/Private/Templates/Grid_6-6_Template.html
pagets__3 = TEXT
pagets__3.value = {$resDir}/Private/Templates/Grid_8-4_Template.html
...
}
...

在常量。字体

## Resource Path
resDir = EXT:wtsitepackage9/Resources

V10.4需要做哪些主要的更改?我尝试了https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/TypoScriptConfiguration/Index.html的例子,但还没有得到它的工作。

上面的FLUIDTEMPLATE的排版配置仍然可用和工作。问题在sitepackage扩展名的ext_localconf.php文件中。

旧版本:

TYPO3CMSCoreUtilityExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TSconfig/Page.txt">'
);
TYPO3CMSCoreUtilityExtensionManagementUtility::addUserTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TSconfig/User.txt">'
);
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom'] = 'EXT:' . $_EXTKEY . '/Configuration/RTE/Custom.yaml';

V10新增

TYPO3CMSCoreUtilityExtensionManagementUtility::addPageTSConfig(
'@import "EXT:wtsitepackage/Configuration/TSconfig/Page.txt">'
);
TYPO3CMSCoreUtilityExtensionManagementUtility::addUserTSConfig(
'@import "EXT:wtsitepackage/Configuration/TSconfig/User.txt">'
);
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom'] = 'EXT:wtsitepackage/Configuration/RTE/Custom.yaml';

改变后端布局是可选择的。

最新更新