"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

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 29 2025 13:35:35
Script start
Timing: Jan 29 2025 13:35:35
Module start 'layout'
Timing: Jan 29 2025 13:35:35
Module start 'content'
Timing: Jan 29 2025 13:35:35
Module end 'content'
Timing: Jan 29 2025 13:35:35
Script end

Main resources:

Total runtime0.0173 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.0062 588.3828151.2422
Module start 'layout' 0.00620.0028 739.625036.7188
Module start 'content' 0.00890.0068 776.343898.8281
Module end 'content' 0.01580.0015 875.171937.9766
Script end 0.0172  913.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002313.3977140.0002
Check MTime0.00105.8231140.0001
Mysql Total
Database connection0.00063.293210.0006
Mysqli_queries0.003721.418030.0012
Looping result0.00000.075910.0000
Template Total0.00126.710.0012
Template load0.00094.954910.0009
Template processing0.00031.712810.0003
Override
Cache load0.00063.276610.0006
General
dbfile0.001810.496580.0002
String conversion0.00000.041440.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