Powermail中的备用ReceiverMail模板

时间:2017-10-24 22:28:54

标签: typo3 typoscript fluid typo3-7.6.x powermail

我在页面上有2个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,这不起作用。

1 个答案:

答案 0 :(得分:1)

我会在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