TYPO3 Powermail 2 - 如何更改插件实例的模板

时间:2013-05-27 15:37:02

标签: typo3 typoscript extbase

我在每个页面底部都有Powermail(新版本,基于Extbase的版本)实例。此实例位于网站上的某个位置,并通过RECORDS以页脚形式呈现。 现在,我需要这个实例拥有与其他Powermail插件实例不同的模板。

那么,我如何将此配置传递给插件实例?在flexform中没有选项来指定模板的路径,所以我卡住了。

在前面谢谢;)

2 个答案:

答案 0 :(得分:2)

您可以在相应页面上使用扩展程序模板,并相应地设置templateRootPath - 通过设置常量 plugin.tx_powermail_view.templateRootPath或设置设置设置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/

答案 1 :(得分:0)

您可以在"扩展"中为此设置不同的布局。表格的标签,如下所述: http://docs.typo3.org/typo3cms/extensions/powermail/Powermail/Faq/Index.html#how-to-change-the-style-selector-with-my-own-values-in-forms-pages

这样一个类将在<表单> -tag,你可以用不同的方式设置记录的样式。

相关问题