Forums / Developer / Extension design resource problem

Extension design resource problem

Author Message

Björn [email protected]

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 [email protected]

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/