我在每个页面的底部都有 Powermail(新版本,基于 Extbase 的)实例。此实例放置在网站的某个位置,并通过 RECORDS 在页脚中呈现。 现在,我需要此实例具有与其余 Powermail 插件实例不同的模板。
那么,如何将此配置传递给插件实例呢? flexform 中没有指定模板路径的选项,所以我卡住了。
先谢过;)
最佳答案
您可以在相应页面上使用扩展模板,并相应地设置 templateRootPath - 通过设置 constants plugin.tx_powermail_view.templateRootPath 或通过设置 setup 设置plugin.tx_powermail.view.templateRootPath 直接:
plugin.tx_powermail {
view {
templateRootPath = {$plugin.tx_powermail.view.templateRootPath}
partialRootPath = {$plugin.tx_powermail.view.partialRootPath}
layoutRootPath = {$plugin.tx_powermail.view.layoutRootPath}
}
}
(部分和布局遵循相同的模式)
参见:http://typo3.org/extension-manuals/powermail/2.0.0/view/1/48/
关于TYPO3 Powermail 2 - 如何更改插件实例的模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16776440/