Extension design resource problem

Author Message

Björn Dieding@xrow.de

Monday 08 December 2003 6:58:39 am

I guess I need help

       include_once( "kernel/common/template.php" );
        $tpl =& eZTemplate::instance();
        $tpl->setVariable( 'order', $order );
        $templateResult =& $tpl->fetch( 'extension/myextension/design/standard/templates/workflow/eventtype/result/orderemail.tpl' );

I am using this code inside a workflow extension...

Unfortunatelly it only loads the tpl like this. I would like to load the tpl over a design resource.

But when I use

design:workflow/eventtype/result/orderemail.tpl

eZ can't find my template. What did I do wrong. (myextention is set as a design extension)

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/

Sergiy Pushchin

Monday 08 December 2003 7:39:11 am

it was a problem with template engine, it is fixed in revision 4065. You can try to place your template in extension/myextension/design/standard/override/templates/workflow/eventtype/result/ in that case it will work in earlier revisions.

Björn Dieding@xrow.de

Monday 08 December 2003 8:32:22 am

Thx great help

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/

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 18 2025 16:09:17
Script start
Timing: Jan 18 2025 16:09:17
Module start 'layout'
Timing: Jan 18 2025 16:09:17
Module start 'content'
Timing: Jan 18 2025 16:09:18
Module end 'content'
Timing: Jan 18 2025 16:09:18
Script end

Main resources:

Total runtime0.8905 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9219152.6250
Module start 'layout' 0.00520.0024 740.546939.4609
Module start 'content' 0.00760.8816 780.0078539.0859
Module end 'content' 0.88910.0014 1,319.093812.1563
Script end 0.8905  1,331.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3428160.0002
Check MTime0.00130.1410160.0001
Mysql Total
Database connection0.00160.181910.0016
Mysqli_queries0.842494.6005570.0148
Looping result0.00060.0691550.0000
Template Total0.862796.920.4314
Template load0.00220.246220.0011
Template processing0.860596.632520.4303
Template load and register function0.00010.011010.0001
states
state_id_array0.00110.121810.0011
state_identifier_array0.00160.175020.0008
Override
Cache load0.00190.2089170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067120.0003
Fetch class attribute name0.00100.107850.0002
XML
Image XML parsing0.00110.121120.0005
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00090.0968220.0000
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs