Ez发布覆盖模板

时间:2015-06-03 09:08:06

标签: php ezpublish

有没有人知道如何在EZ PUBLISH .. +

中覆盖此文件
  

{*不要编辑此文件!请改用覆盖模板。 *}   {set-block scope = root variable = subject} {“收集来自的信息   %1 “| I18N(” 设计/标准/内容/编辑” ,,阵列($ collection.object.name |洗涤))} {/设定块}

     

{*使用此行指定接收者,发件人和回复的电子邮件   在模板中,可以从对象中读取它以使其动态化   pr form {set-block scope = root   variable=email_receiver}nospam@ez.no{/set-block} {set-block scope = root   variable=email_sender}custom_sender@example.com{/set-block} {set-block   范围=根   variable=email_reply_to}custom_reply_to@example.com{/set-block}   *}

     

{*将此设置为重定向到另一个节点{set-block scope = root   变量= redirect_to_node_id} 2 {/设定块}   *}

     

{“以下信息是   收集的 “| I18N(” 设计/标准/内容/编辑“)}:

     

{section name = Attribute loop = $ collection.attributes}   {$属性:item.contentclass_attribute_name |洗}:   {attribute_result_gui view = info attribute = $ Attribute:item}

     

{/部分}

它位于extension/ezwebin/design/ezwebin/templates/content/collectedinfomail/form.tpl ..

我想覆盖该文件,以便修改我将通过电子邮件发送的内容

1 个答案:

答案 0 :(得分:3)

你总有两种方法可以覆盖:

{很好的方式}
1.在您自己的扩展程序的覆盖文件夹下的模板文件夹中创建一个文件,并在您的扩展程序或siteaccess的override.ini文件中定义新的覆盖规则。 [阅读更多here]

{simpler way}
2.您可以在自己的扩展中创建一个具有完全相同路径的文件(不在覆盖文件夹下),该文件将自动覆盖ezwebin或ezpublish的任何其他扩展名中的文件。 注意:对于这种方法,您应该始终确保您的扩展程序比另一个扩展程序更强大。 (它应该在site.ini中处于上方位置)

相关问题