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.

eZ debug

Timing: Jan 19 2025 11:52:57
Script start
Timing: Jan 19 2025 11:52:57
Module start 'layout'
Timing: Jan 19 2025 11:52:57
Module start 'content'
Timing: Jan 19 2025 11:52:57
Module end 'content'
Timing: Jan 19 2025 11:52:57
Script end

Main resources:

Total runtime0.0188 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0313152.6094
Module start 'layout' 0.00660.0040 741.640639.4297
Module start 'content' 0.01060.0063 781.070389.3047
Module end 'content' 0.01680.0019 870.375034.3047
Script end 0.0187  904.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.5719140.0002
Check MTime0.00115.9227140.0001
Mysql Total
Database connection0.00115.711810.0011
Mysqli_queries0.003418.296630.0011
Looping result0.00000.085110.0000
Template Total0.00158.210.0015
Template load0.00084.225410.0008
Template processing0.00073.873510.0007
Override
Cache load0.00062.952510.0006
General
dbfile0.00137.082680.0002
String conversion0.00000.058440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs