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 15 2025 09:01:46
Script start
Timing: Jan 15 2025 09:01:46
Module start 'layout'
Timing: Jan 15 2025 09:01:46
Module start 'content'
Timing: Jan 15 2025 09:01:48
Module end 'content'
Timing: Jan 15 2025 09:01:48
Script end

Main resources:

Total runtime1.5612 sec
Peak memory usage6,144.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 686.5156183.7500
Module start 'layout' 0.00670.0038 870.265652.6484
Module start 'content' 0.01051.5489 922.91411,776.9063
Module end 'content' 1.55940.0018 2,699.820368.4453
Script end 1.5612  2,768.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00600.3875160.0004
Check MTime0.00140.0899160.0001
Mysql Total
Database connection0.00070.046610.0007
Mysqli_queries1.493795.6728650.0230
Looping result0.00080.0484630.0000
Template Total1.512596.920.7563
Template load0.00460.292420.0023
Template processing1.507996.587320.7540
Template load and register function0.00140.092410.0014
states
state_id_array0.00280.180210.0028
state_identifier_array0.00420.267020.0021
Override
Cache load0.00420.2680360.0001
Sytem overhead
Fetch class attribute can translate value0.00080.052230.0003
Fetch class attribute name0.00270.173440.0007
XML
Image XML parsing0.00040.025830.0001
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00110.0732100.0001
String conversion0.00000.000740.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