Forums / Install & configuration / "Event / Finish User Account" workflow event issue

"Event / Finish User Account" workflow event issue

Author Message

Alex Muñoz

Monday 04 July 2011 4:23:33 am

Hi,

I Have eZ publish 4.5, I'm trying to make a workflow with the event "Event / Finish User Account" but when I add this event only appear the field "Description / comments:".

I can see in this article:

http://doc.ez.no/eZ-Publish/User-manual/4.5/The-administration-interface/The-login-page/User-registration-with-approval-workflow

how I have to fill the fields "Affected Sections" and 'Affected Versions' also the users and groups fields who are allowed to do this action, but it doesn't appear only the field "Description / comments:"

I don't know if is an installation problem, but it was succesfull, any idea?

Thanks in advance

Greetings

Carlos Revillo

Tuesday 05 July 2011 1:34:50 am

Hi Alex.

I guess you're adding your workflow from a custom extension, right? you will need two new templates. one for edit the workflow and the other one for viewing the info of it  (that's it, the classes or sections you have selected in the edit template).

that edit template will be loaded just below the comments field you're talking about. if you have your debug enabled, i guess it would telling you which templates are missing (if this is case, of course).

Normally this edit template should be placed in

extension/[yourextension]/design/standard/templates/workflow/eventtype/edit/event_[yourevent].tpl

then, it's a matter of tweak that template and get the values from the php class you have added for the template.

Carlos Revillo

Tuesday 05 July 2011 1:59:57 am

Sorry. maybe my reply is not good. i was thinking about a custom workflow, not a provided by eZ one...

Alex Muñoz

Tuesday 05 July 2011 6:23:59 am

Hi Carlos,

thanks for your reply

I think is not a custom workflow or event because I was following the tutorial:

http://doc.ez.no/eZ-Publish/User-manual/4.5/The-administration-interface/The-login-page/User-registration-with-approval-workflow

But in this steps:

  • Select "Event / Finish User Registration" and press "Add event" button. In the screen that appears you:
  • Select "Users" under "Affected Sections" and "Publishing New Object" under "Affected Versions".
  • Select proper group who can approve the event 
  • Press "Add groups" under "Users who approve content" and select the group you wish to give control of approving the new users.
  • Press "OK" to save the new workflow.

when I have to fill the "Affected Sections" and "Publishing New Object" fields, my ezPublish 4.5 doesn't show them, only the field "Description / comments:"

It is very strange, I want to approve users in admin section with this workflow but I can't complete the workflow configuration.

Maybe reinstalling the ezPublish could I solve this bug? Is it a bug?

Greetings

Carlos Revillo

Tuesday 05 July 2011 7:29:41 am

hi again. i've checked with my development installation, and really can't say it is an ez publish bug or a documentation bug. if you activate your debug and showusedtemplates option, you will see this template design/standard/templates/workflow/eventtype/edit/event_ezfinishuserregister.tpl is being loaded if you select that event. if you look to that template you will see that it's an empty file. (only a comment) so it's normal it doesn't show anything when event is added.

See the file at github https://github.com/ezsystems/ezpublish/blob/master/design/standard/templates/workflow/eventtype/edit/event_ezfinishuserregister.tpl

Carlos Revillo

Tuesday 05 July 2011 7:40:04 am

if i had to bet, i would go for a documentation bug. looking at the php class related with this event, there are no functions for getting the content sent by this form. only execute function. so i would say you're doing right and it's only a problem with the documentation of that page. i'm adding an issue about.

Alex Muñoz

Wednesday 06 July 2011 12:43:04 am

Hi Carlos
I was expected to solve my 'problem' with this workflow, I want approve public users from administration and send them an email.
I'am new with ezPublish, I read a lot of threads about how to do this but I haven't a clearly solution.
Using the event "Event / Finish User Registration" how can I develope what tutorial explain?
Thanks

eZ debug

Timing: Jan 17 2025 20:58:34
Script start
Timing: Jan 17 2025 20:58:34
Module start 'content'
Timing: Jan 17 2025 20:58:35
Module end 'content'
Timing: Jan 17 2025 20:58:35
Script end

Main resources:

Total runtime0.7926 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 596.2969180.8125
Module start 'content' 0.00490.6754 777.1094601.9688
Module end 'content' 0.68030.1122 1,379.0781341.2969
Script end 0.7925  1,720.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4593210.0002
Check MTime0.00130.1695210.0001
Mysql Total
Database connection0.00060.069910.0006
Mysqli_queries0.703588.75722080.0034
Looping result0.00170.22062060.0000
Template Total0.771097.320.3855
Template load0.00160.205020.0008
Template processing0.769497.074020.3847
Template load and register function0.00010.013210.0001
states
state_id_array0.00060.079510.0006
state_identifier_array0.00090.109620.0004
Override
Cache load0.00150.1861580.0000
Sytem overhead
Fetch class attribute can translate value0.00090.112230.0003
Fetch class attribute name0.00130.159180.0002
XML
Image XML parsing0.00210.263130.0007
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00590.7462270.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs