Forums / Developer / Content object validation on publish

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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