php - Ez Publish Override Template -


does know how override file in ez publish..+

{* not edit file! use override template instead. *} {set-block scope=root variable=subject}{"collected information %1"|i18n("design/standard/content/edit",,array($collection.object.name|wash))}{/set-block}

{* use line specify email of receiver, sender , reply-to in template, can read object make dynamic 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 scope=root variable=email_reply_to}custom_reply_to@example.com{/set-block} *}

{* set redirect node {set-block scope=root variable=redirect_to_node_id}2{/set-block} *}

{"the following information collected"|i18n("design/standard/content/edit")}:

{section name=attribute loop=$collection.attributes} {$attribute:item.contentclass_attribute_name|wash}: {attribute_result_gui view=info attribute=$attribute:item}

{/section}

it located in extension/ezwebin/design/ezwebin/templates/content/collectedinfomail/form.tpl..

i want override file me modify content i'm going send in email

you have 2 ways override:

{nice way}
1. make file in template folder under override folder in own extension , define new override rule in override.ini file of extension or siteaccess. [read more here]

{simpler way}
2. can create file same path(not under override folder anymore) in own extension , file automatically override file in ezwebin or other extension of ezpublish. attention: method, should make sure extension more powerful other one. (it should in upper position in site.ini)


Comments