Forums / Developer / Extension Templates paths

Extension Templates paths

Author Message

Matthew Farrell

Tuesday 08 August 2006 4:10:00 am

Is there any way to find out what paths are being searched for templates,

I am using the following code in an extension:

  $requestUri = eZSys::requestUri();		

  $process->Template = array( 'templateName' => 'design:' . 'ccvalidate' . '.tpl',
    'templateVars' => array( 'request_uri' => $requestUri )
  );

But I get 'No template could be loaded for "ccvalidate.tpl" using resource "design"' in the debug output.

I have put the template in the extension path:
extensions/ccvalidate/design/ccvalidate.tpl
and in the site override:
design/site_name/override/templates/pagelayout.tpl

Xavier Dutoit

Tuesday 08 August 2006 4:21:54 am

Hi,

I tought that by default it would tell you where it search the templates on error.

Anyway, put your templates under design/standard/templates/ in your extension and it should do it.

X+

http://www.sydesy.com

Xavier Dutoit

Tuesday 08 August 2006 4:22:35 am

Me again,

Of course, clear all caches first ;)

X+

http://www.sydesy.com

Matthew Farrell

Wednesday 09 August 2006 2:50:43 am

Arrrrg,

it was the caches all along.

Thanks for all the help Xavier.