TYPO3 扩展中的多个插件
Multiple Plugins in TYPO3 Extension
我尝试使用 EXTBASE(有和没有 Extensionbuilder)在 TYPO3 8.7 中创建一个带有多个插件的 TYPO3 扩展。
我不明白为什么,但以下 TypoScript 不起作用:
(错误没有找到模板...)
plugin.tx_test_pi1 {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
...
}
plugin.tx_test_pi2 {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
}
但是,如果我进行以下更改,所有插件都将起作用:
plugin.tx_test {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
}
我错过了什么?
Extbase 使用通用的 TypoScript 配置。插件不再由 类 分隔。您可以使用三个插件和一个控制器。
也许看看这个页面:https://docs.typo3.org/typo3cms/ExtbaseFluidBook/4-FirstExtension/7-configuring-the-plugin.html
我尝试使用 EXTBASE(有和没有 Extensionbuilder)在 TYPO3 8.7 中创建一个带有多个插件的 TYPO3 扩展。
我不明白为什么,但以下 TypoScript 不起作用: (错误没有找到模板...)
plugin.tx_test_pi1 {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
...
}
plugin.tx_test_pi2 {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
}
但是,如果我进行以下更改,所有插件都将起作用:
plugin.tx_test {
view {
templateRootPaths.0 = EXT:test/Resources/Private/Templates/
}
我错过了什么?
Extbase 使用通用的 TypoScript 配置。插件不再由 类 分隔。您可以使用三个插件和一个控制器。
也许看看这个页面:https://docs.typo3.org/typo3cms/ExtbaseFluidBook/4-FirstExtension/7-configuring-the-plugin.html