Customize notification emails

Author Message

Benjamin Lemoine

Friday 19 January 2007 2:33:44 am

Hi all,

I'm trying the eZ approval system wich works well.

But the problem is that I don't find how can I change the content of my notification emails.
The emails sent are : This email is to inform you that... needs your attention on ez.no
And the links are about ez.no (http://ez.no/notification/settings)

What file I have to modify ? Thanx

Regards

Betsy Gamrat

Saturday 20 January 2007 6:35:15 pm

Benjamin,

One technique I use is to use <b>grep</b>.

Change into the design directory and search for a unique string with these two commands.

cd /home/domain/www/ez/design
grep -r attention *

It should yield a list of the files, with the lines that have the word in them.

Then go into the admin console to create an override template for the file. That will ensure eZ correctly configures the overrides and places the file in the right place.

Good luck.

kracker (the)

Sunday 21 January 2007 3:44:26 am

Another hint,

# find design/ -name *notification*
design/base/templates/notification
design/standard/images/toolbar/notification.png
design/standard/images/toolbar/notification_line.png
design/standard/templates/toolbar/line/notification.tpl
design/standard/templates/toolbar/full/notification.tpl
design/standard/templates/notification
design/standard/templates/content/copy_subtree_notification.tpl
design/admin/templates/notification

<i>//kracker

dj jazzy jeff - When To Stand Up (featuring Eminem)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Nicolas Lescure

Sunday 21 January 2007 3:24:34 pm

Set the debbuger on, with template debbuging and send our mail. You should see in the mail which template is used.

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 15:19:07
Script start
Timing: Jan 18 2025 15:19:07
Module start 'layout'
Timing: Jan 18 2025 15:19:07
Module start 'content'
Timing: Jan 18 2025 15:19:08
Module end 'content'
Timing: Jan 18 2025 15:19:08
Script end

Main resources:

Total runtime1.2397 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.9844153.4531
Module start 'layout' 0.00570.0033 742.437539.3906
Module start 'content' 0.00901.2291 781.8281633.7266
Module end 'content' 1.23810.0015 1,415.554712.1641
Script end 1.2396  1,427.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2619160.0002
Check MTime0.00140.1121160.0001
Mysql Total
Database connection0.00080.061910.0008
Mysqli_queries1.182495.3848640.0185
Looping result0.00080.0638620.0000
Template Total1.200496.820.6002
Template load0.00210.172920.0011
Template processing1.198396.660420.5991
Template load and register function0.00020.017410.0002
states
state_id_array0.00090.070110.0009
state_identifier_array0.00210.170520.0011
Override
Cache load0.00190.1501280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.049840.0002
Fetch class attribute name0.00090.071070.0001
XML
Image XML parsing0.00220.176240.0005
class_abstraction
Instantiating content class attribute0.00000.001070.0000
General
dbfile0.00140.1168300.0000
String conversion0.00000.000640.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs