【问题标题】:Ez Publish survey form result format on EmailEz 在电子邮件上发布调查表结果格式
【发布时间】:2015-06-03 06:56:24
【问题描述】:

我将通过电子邮件发送调查表的结果。但它有不必要的 cmets 行。我想省略这些 cmets.. 有什么想法吗?

这是通过我的电子邮件发送的结果示例。

The following information was collected:
1. How did you Initiate this technical support transaction? (Phoned the Technical Support Hotline):
<!-- START: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) -->
    No
<!-- STOP: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) -->
1. How did you Initiate this technical support transaction? (Via Web-Support):
<!-- START: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) -->
    No
<!-- STOP: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) -->
1. How did you Initiate this technical support transaction? (Via Email):
<!-- START: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) -->
    No

例如像这样 &lt;!-- START: including template: design/standard/templates/content/datatype/result/info/ezboolean.tpl (design:content/datatype/result/info/ezboolean.tpl) --&gt;

我不想在我的调查表结果中看到这些 cmets。有没有办法忽略这些?

提前致谢

【问题讨论】:

  • 你自己有没有尝试过?
  • 我将结果发送到我的电子邮件的唯一方法是将我的电子邮件放入[InformationCollectionSettings] EmailReceiver = "myemail@yahoo.com",因为我是 ez publish 的新手,所以没有尝试过任何覆盖..
  • hello @Epodax....我碰巧将 ContentType 更改为 text/html...它省略了 cmets..但格式不正确...它们都在一个段落中。

标签: php email ezpublish


【解决方案1】:

您可能为您的模板启用了调试模式。

尝试使用此参数禁用它:

https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/TemplateSettings/Debug

【讨论】:

  • 它省略了所有不必要的 cmets.. 但结果格式进入 1 段.. 我想正确格式化.. 有没有办法?
  • 看起来您正在发送没有任何格式的 HTML 电子邮件。尝试在段落周围添加适当的 html 格式。
  • 我唯一做的就是创建一个用户类内容并覆盖表单...之后我收集信息并将结果发送到我的电子邮件..但是我不知道如何格式化结果。
  • 你必须在这里覆盖电子邮件模板:https://github.com/ezsystems/ezpublish-legacy/blob/master/design/standard/templates/content/collectedinfomail/form.tpl 不确定
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-01-12
  • 2018-08-17
  • 2020-01-14
  • 2017-12-23
  • 2014-09-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多