我在一个页面上有两个Powermail表单,其中一个需要定制的receiverMail模板。如何根据插件实例指定要使用的模板文件?
我最好的猜测是做这样的事:
plugin.tx_powermail {
view {
templateRootPath >
templateRootPath {
10 = EXT:powermail/Resources/Private/Templates/
20 = CASE
20 {
key.field = uid
default = fileadmin/template/powermail/Templates/
123 = fileadmin/template/powermail/Templates2/
}
}
}
} 使用表单元素的uid,这是行不通的。
发布于 2017-10-25 07:01:03
我会在HTML-模板中切换或设置一个if条件。取决于uid、标题或更好的布局字段中的值。
如何在布局字段中设置自己的值,详见手册:https://docs.typo3.org/typo3cms/extensions/powermail/Faq/Index.html#how-to-change-the-style-selector-with-my-own-values-in-forms-pages-or-fields。
https://stackoverflow.com/questions/46921013
复制相似问题