Send email to editor when then content are reject/approve by administrator

Author Message

Fabien GALLARD

Tuesday 29 March 2011 5:43:30 am

Hello,

I wonder if it is possible to receive an email when an administrator approves or rejects an article. This email will be receive by an editor

(i already setup workflow process on ezpublish 4.4, it works)

Thanks,

Fabien

Carlos Revillo

Wednesday 30 March 2011 12:45:23 am

This is a feature asked sometimes in the past. also commented in some share.ez.no forums like.

Also commented http://share.ez.no/forums/general/sending-emails-on-approval-rejection for instance.

I'm working on that for our projects, and i started an extension to allow that. basically it works just like the provided feature, but it addd the posibility to send mails when a collab item is commented, approved or rejected.

work is in progress though, but the main part of the code is finished. i need to update readme file, add some templates and add proper doc to the files.

but you can try http://github.com/crevillo/ezapprovetanta :)

Cheers.

Andy Woods

Tuesday 24 May 2011 6:30:47 am

Hi Carlos,

Is your ezapprovetanta extension ok to be used now?

Andy

Carlos Revillo

Tuesday 24 May 2011 6:48:45 am

"

Hi Carlos,

Is your ezapprovetanta extension ok to be used now?

Andy

"

Hi Andy. 

I would say it's 85% complete. This include 

  • Approvers and creator receiving mails when content is created
  • Approvers and creator receiving mails when content is approved/rejected
  • Approvers and creator receiving mails when a comment is added to the collab item

Maybe you may need to take a look to the emails templates, cause they probably contain not very correct english sentences... and probably spanish words too. i haven't found the time to finish all this yet. 

But you can give it a try and share your experiences. any comment would be appreciated. 

Cheers!. 

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 02:49:17
Script start
Timing: Jan 18 2025 02:49:17
Module start 'layout'
Timing: Jan 18 2025 02:49:17
Module start 'content'
Timing: Jan 18 2025 02:49:17
Module end 'content'
Timing: Jan 18 2025 02:49:17
Script end

Main resources:

Total runtime0.7226 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.3984152.6875
Module start 'layout' 0.00500.0032 741.085939.5313
Module start 'content' 0.00820.7131 780.6172520.3359
Module end 'content' 0.72130.0013 1,300.953112.0625
Script end 0.7226  1,313.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4782160.0002
Check MTime0.00150.2121160.0001
Mysql Total
Database connection0.00100.134810.0010
Mysqli_queries0.670792.8234650.0103
Looping result0.00060.0786630.0000
Template Total0.692595.820.3463
Template load0.00210.283820.0010
Template processing0.690495.552320.3452
Template load and register function0.00020.023510.0002
states
state_id_array0.00140.196410.0014
state_identifier_array0.00140.187220.0007
Override
Cache load0.00170.2357360.0000
Sytem overhead
Fetch class attribute can translate value0.00070.097430.0002
Fetch class attribute name0.00120.169040.0003
XML
Image XML parsing0.00040.050430.0001
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00060.0856100.0001
String conversion0.00000.001340.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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs