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

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 19 2025 03:23:21
Script start
Timing: Jan 19 2025 03:23:21
Module start 'layout'
Timing: Jan 19 2025 03:23:21
Module start 'content'
Timing: Jan 19 2025 03:23:23
Module end 'content'
Timing: Jan 19 2025 03:23:23
Script end

Main resources:

Total runtime1.5540 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2734152.6406
Module start 'layout' 0.00670.0041 741.914139.4766
Module start 'content' 0.01081.5417 781.3906461.9922
Module end 'content' 1.55250.0014 1,243.38288.1250
Script end 1.5539  1,251.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2458160.0002
Check MTime0.00140.0921160.0001
Mysql Total
Database connection0.00090.060610.0009
Mysqli_queries1.467894.4560460.0319
Looping result0.00060.0359440.0000
Template Total1.450093.320.7250
Template load0.00250.163120.0013
Template processing1.447593.148720.7237
Template load and register function0.00010.008210.0001
states
state_id_array0.00180.115610.0018
state_identifier_array0.00290.183420.0014
Override
Cache load0.00210.1329100.0002
Sytem overhead
Fetch class attribute can translate value0.00080.049010.0008
Fetch class attribute name0.00120.080120.0006
XML
Image XML parsing0.00040.025210.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.01731.1139150.0012
String conversion0.00000.000640.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs