Email template

Author Message

John Smith

Tuesday 15 March 2005 1:05:25 am

hi there,

Can any body please tell me where is the template for this section given below in the content/collectedinfomail/form.tpl

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

cheers

Heiner Wurbs

Tuesday 15 March 2005 2:16:31 am

What do you mean?

You can see the used templates enabling the debug info in site.ini:

[TemplateSettings]
Debug=enabled

John Smith

Tuesday 15 March 2005 2:21:07 am

thanks for your reply.

The section code written above is generating the email from the contact us feedback form

Subject:

XXXXXXXXXXXXX
Message:

XXXXXXXXXXXXXXXXXXXXX
Email:
XXXXXXXXXXXXXXXXXXX

I want to chop and change the line break between the text(XXXXXXX) and the next header. As you see there is no gap between XXXXXXXXXXXX and Message....

cheers

Heiner Wurbs

Tuesday 15 March 2005 3:06:49 am

This is really difficult, I had the same problem, but didn't solve it right. Now I found the following informations, but I didn't get information about the

{attribute_result_gui view=info attribute=$Attribute:item}

First I edit the content/collectedinfomail/form.tpl and added some nice informations for the email receiving user.

The line problem is caused in the file design/standard/templates/content/datatype/result/info/ezstring.tpl, which should be overrided with the following content:

{section show=$attribute|get_class|eq( 'ezinformationcollectionattribute' )} {$:attribute.data_text|wash}{/section}

Important is the last empty line, otherwise you get no new line inside the generated plain email.

Do you know how to remove the following information in the email without editing php kernel code:

Content-Disposition: inline

User-Agent: eZ publish, Version 3.4.0
Message-Id: <numbersofnumber...>
Date: Tue, 15 Mar 2005 11:57:54 +0100 (CET)

greetz
Heiner

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.