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.

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 21 2025 06:04:42
Script start
Timing: Jan 21 2025 06:04:42
Module start 'layout'
Timing: Jan 21 2025 06:04:42
Module start 'content'
Timing: Jan 21 2025 06:04:42
Module end 'content'
Timing: Jan 21 2025 06:04:42
Script end

Main resources:

Total runtime0.0291 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9141151.2109
Module start 'layout' 0.00820.0058 739.125036.6484
Module start 'content' 0.01400.0119 775.773490.2656
Module end 'content' 0.02590.0031 866.039133.9922
Script end 0.0290  900.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003812.9771140.0003
Check MTime0.00186.3038140.0001
Mysql Total
Database connection0.00082.665810.0008
Mysqli_queries0.005518.875530.0018
Looping result0.00000.113010.0000
Template Total0.00227.510.0022
Template load0.00175.805110.0017
Template processing0.00051.679810.0005
Override
Cache load0.00124.022910.0012
General
dbfile0.00237.873180.0003
String conversion0.00000.051640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs