Content object validation on publish

Author Message

Piotr Switkowski

Saturday 23 December 2006 2:59:03 pm

Hello
I need to run my own code to validate content object when it is published. I do it as event code. When content object is not correct I reject workflow in my code. This however displays only the text "Content publish cancelled" and I cannot present the error code. How can I display error message? Or display own template? Or even better, direct user back to edit screen?

Please help

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.