TYPO3 8.7.7 包含带有 BackendLayouts 选项的用户 tsconfig 不起作用
TYPO3 8.7.7 include user tsconfig with BackendLayouts option not working
我在将 BE 布局选项添加到 select 时遇到问题,在包含文件 tsconfig 时遇到问题,但在使用 EditPage->Resources 中的页面 TS 配置字段时遇到问题。
我正在使用
添加我的 tsconfig.ts 文件到页面
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'myextension',
'Configuration/PageTS/TSConfig.ts',
'ext tables ts config'
);
在myextension\ext_tables.php(示例来自ext_tables.php,但唯一不同的是名称),或 myextension\Configuration\TCA\Overrides\pages.php。
在Configuration\UserTS\TSConfig.ts:
options {
#pageTree.showPageIdWithTitle = 1 <-uncoment and it works!
pageTree.showNavTitle = 1
}
mod.web_layout.BackendLayouts { # <- this doesn't work!!!!
113 {
title = anaele
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = columnname
colPos = 0
}
}
}
}
}
}
}
}
但另一方面,当在页面编辑中使用页面 TS 配置时,我粘贴了从 mod.web_layout.BackendLayouts
开始的相同行,它工作正常并且有新选项 anaele 在后端布局中 selection。我知道我的文件已正确包含,因为 options 部分工作正常。
我清空了 backend_layout table 但得到了相同的结果。
那么这里的问题是什么?
文档提供了一个示例,您可以在其中看到脚本的路径应该是 Configuration/PageTS/myPageTSconfigFile.txt 而不是 Configuration/UserTS/TSConfig。 ts(文件扩展名无关紧要)。 Link to documentation if someone has the same problem.
我在将 BE 布局选项添加到 select 时遇到问题,在包含文件 tsconfig 时遇到问题,但在使用 EditPage->Resources 中的页面 TS 配置字段时遇到问题。 我正在使用
添加我的 tsconfig.ts 文件到页面\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'myextension',
'Configuration/PageTS/TSConfig.ts',
'ext tables ts config'
);
在myextension\ext_tables.php(示例来自ext_tables.php,但唯一不同的是名称),或 myextension\Configuration\TCA\Overrides\pages.php。 在Configuration\UserTS\TSConfig.ts:
options {
#pageTree.showPageIdWithTitle = 1 <-uncoment and it works!
pageTree.showNavTitle = 1
}
mod.web_layout.BackendLayouts { # <- this doesn't work!!!!
113 {
title = anaele
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = columnname
colPos = 0
}
}
}
}
}
}
}
}
但另一方面,当在页面编辑中使用页面 TS 配置时,我粘贴了从 mod.web_layout.BackendLayouts
开始的相同行,它工作正常并且有新选项 anaele 在后端布局中 selection。我知道我的文件已正确包含,因为 options 部分工作正常。
我清空了 backend_layout table 但得到了相同的结果。
那么这里的问题是什么?
文档提供了一个示例,您可以在其中看到脚本的路径应该是 Configuration/PageTS/myPageTSconfigFile.txt 而不是 Configuration/UserTS/TSConfig。 ts(文件扩展名无关紧要)。 Link to documentation if someone has the same problem.