Forums / Developer / Force a site design in a workflow event?

"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".

Force a site design in a workflow event?

Author Message

Hans Melis

Wednesday 18 August 2004 10:36:24 pm

Hi,

We're developing a workflow event that generates a PDF and queues it for printing. We can generate the PDF (a slight modification of the code from kernel/content/pdf.php did the trick), but it always reads the pdf templates from the standard design.

Is there any way we can force a certain sitedesign in the workflow event for the pdf generation, regardless of the 'current' sitedesign? I have tried the setOverrideAccess() in eZTemplateDesignResource, but that didn't appear to change anything.

Thanks

--
Hans

Hans
http://blog.hansmelis.be