setting subject in information collector not working

Author Message

Jacek S

Tuesday 20 February 2007 3:55:30 am

I have an information collector and a template containing custom form connected with it. I want to send collected info thru email but I want to set my own title for this email.
I have tried to set this by :
{set-block scope=root variable=subject}MY_OWN_TITLE{/set-block}
but all emails are send with default title (something like "Collected info from...".

So, where I made an error? Or is there a bug?

Xavier Serna

Tuesday 20 February 2007 4:18:17 am

Hi Thorgrim,

you have to be sure that your mail template is used, defining an override for it.
It seems that your tpl is not used, because I've set the subject line for our contact forms like yours and work as expected...
Perhaps a cache problem, too...

For you to note, the override rule you need is

[your_override_name]
Source=content/collectedinfomail/form.tpl

hope this helps!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Jacek S

Monday 26 February 2007 4:53:47 am

Thanks, your information was very useful. I had problem with templates' overriding.

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 31 2025 06:26:05
Script start
Timing: Jan 31 2025 06:26:05
Module start 'layout'
Timing: Jan 31 2025 06:26:05
Module start 'content'
Timing: Jan 31 2025 06:26:05
Module end 'content'
Timing: Jan 31 2025 06:26:05
Script end

Main resources:

Total runtime0.0154 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.0060 588.2578151.2266
Module start 'layout' 0.00600.0031 739.484436.6953
Module start 'content' 0.00910.0048 776.179790.2813
Module end 'content' 0.01390.0014 866.460929.9922
Script end 0.0153  896.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.9551140.0002
Check MTime0.00106.8279140.0001
Mysql Total
Database connection0.00074.533310.0007
Mysqli_queries0.003120.132930.0010
Looping result0.00000.104010.0000
Template Total0.00117.010.0011
Template load0.00085.404310.0008
Template processing0.00021.588210.0002
Override
Cache load0.00063.944910.0006
General
dbfile0.00031.751280.0000
String conversion0.00000.059040.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