Before publish event with tempaltes?

Author Message

Björn Dieding@xrow.de

Wednesday 19 October 2005 12:57:37 am

I have a problem with this event.

It returns the requested template the first time well.

I used a

return EZ_WORKFLOW_TYPE_STATUS_FETCH_TEMPLATE_REPEAT;

and filled $this->Tempalte

But the problem occurs when I post the result back to the same URI again /content/edit/x/x

My problem is that I get back to the real content edit mode page and it does not continue the workflow.

I also tried to to name the button like the publish button with in my event template

<input class="button" type="submit" name="PublishButton" value="Next step PublishButton" />

And again I reveive the normal edit page with a message that the data is not valid.

So how can I continue the before post workflow here?

Is it maybe somethig that is not implemented yet?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Wednesday 19 October 2005 2:08:51 am

Oh I think I found the solution

The trick is to add a HasObjectInput

<input type="hidden" name="HasObjectInput" value="0" />

This is really documented nowhere... also the forum is empty.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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

Main resources:

Total runtime1.1647 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 587.9375151.2109
Module start 'layout' 0.00450.0019 739.148436.6484
Module start 'content' 0.00641.1574 775.7969513.2188
Module end 'content' 1.16380.0009 1,289.015611.8438
Script end 1.1647  1,300.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2537160.0002
Check MTime0.00120.1048160.0001
Mysql Total
Database connection0.00070.058810.0007
Mysqli_queries1.124996.5856520.0216
Looping result0.00040.0329500.0000
Template Total1.139797.920.5698
Template load0.00190.164220.0010
Template processing1.137897.685620.5689
Template load and register function0.00010.008810.0001
states
state_id_array0.00090.080210.0009
state_identifier_array0.00160.133620.0008
Override
Cache load0.00160.1366220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.042510.0005
Fetch class attribute name0.00080.068930.0003
XML
Image XML parsing0.00060.049810.0006
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00070.0612160.0000
String conversion0.00000.000440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs