Forums / Developer / Before publish event with tempaltes?

Before publish event with tempaltes?

Author Message

Björn [email protected]

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 [email protected]

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/