Forums / Developer / Extension design resource problem

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

Extension design resource problem

Author Message

Björn X

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)

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 X

Monday 08 December 2003 8:32:22 am

Thx great help