Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 Powermail中的备用收件人邮件模板_Typo3_Typoscript_Fluid_Typo3 7.6.x_Powermail - Fatal编程技术网

Typo3 Powermail中的备用收件人邮件模板

Typo3 Powermail中的备用收件人邮件模板,typo3,typoscript,fluid,typo3-7.6.x,powermail,Typo3,Typoscript,Fluid,Typo3 7.6.x,Powermail,我在一个页面上有两个Powermail表单,其中一个需要自定义的receiverMail模板。 如何根据插件实例指定要使用的模板文件 我最好的猜测是这样做: plugin.tx_powermail { view { templateRootPath > templateRootPath { 10 = EXT:powermail/Resources/Private/Templates/ 20 = CASE 20 { ke

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

我会在HTML模板中使用switch或if条件。取决于uid、标题或更好的布局字段中的值


手册中介绍了如何在布局字段中设置自己的值:

布局字段似乎仅用于向表单添加类。我不知道如何使用它来更改邮件模板文件。那么你是说最好的方法是使用一个带有if条件的模板文件?我认为使用单独的文件会更整洁,但如果没有其他方法,我会尝试一下。我刚刚意识到布局类名可以作为变量在if条件下使用。