How to format collected info email?

Author Message

Noicokuna Niemoge

Tuesday 24 March 2009 12:54:36 am

Hi;

I'd like to add spaces (new lines between fields) to collected information email message, to make it look better. I found the template, just I don't know how to do this.

{set-block scope=root variable=subject}{"Feedback from %1"|i18n("design/ezwebin/collectedinfomail/feedback",,array($collection.object.name|wash))}{/set-block}

{if and( is_set( $object.data_map.recipient ), $object.data_map.recipient.has_content )}
{set-block scope=root variable=email_receiver}{$object.data_map.recipient.content}{/set-block}
{/if}

{* Set this to redirect to another node
{set-block scope=root variable=redirect_to_node_id}2{/set-block}
*}

{"The following feedback was collected"|i18n("design/ezwebin/collectedinfomail/feedback")}:

{foreach $collection.attributes as $attribute}
{$attribute.contentclass_attribute_name|wash()}:
{attribute_result_gui view=info attribute=$attribute}

{/foreach}

I presume I have to put something just after "foreach", but I don't know how to put there "<br />" (next line).

Shiki soku ze ku...

Ivo Lukac

Tuesday 24 March 2009 1:28:23 am

Hello,

Just put an enter.

<br> is html tag and this email template is rendered into plain text

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Norman Leutner

Tuesday 24 March 2009 4:41:50 am

You can set the output format for all outgoing emails to html within the site.ini.append.php.
So you may use html within you mail templates.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Noicokuna Niemoge

Tuesday 24 March 2009 7:59:15 am

Thanks for answers, I wasn't sure about that one. :)

Nice avatar, Mr Leutner :P

Shiki soku ze ku...

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 18 2025 10:33:19
Script start
Timing: Jan 18 2025 10:33:19
Module start 'layout'
Timing: Jan 18 2025 10:33:19
Module start 'content'
Timing: Jan 18 2025 10:33:20
Module end 'content'
Timing: Jan 18 2025 10:33:20
Script end

Main resources:

Total runtime0.8260 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0111 589.0547152.6250
Module start 'layout' 0.01110.0033 741.679739.4609
Module start 'content' 0.01440.8100 781.1406590.8125
Module end 'content' 0.82440.0015 1,371.953112.1563
Script end 0.8259  1,384.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4804160.0002
Check MTime0.00140.1686160.0001
Mysql Total
Database connection0.00160.199410.0016
Mysqli_queries0.768593.0381620.0124
Looping result0.00070.0803600.0000
Template Total0.786295.220.3931
Template load0.00210.253620.0010
Template processing0.784194.932720.3921
Template load and register function0.00020.024110.0002
states
state_id_array0.00090.108410.0009
state_identifier_array0.00120.151320.0006
Override
Cache load0.00170.2088190.0001
Sytem overhead
Fetch class attribute can translate value0.00110.127230.0004
Fetch class attribute name0.00110.133060.0002
XML
Image XML parsing0.00120.145630.0004
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00100.1175240.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs