How overriding templates?

Author Message

Adolfo Barragán

Monday 08 September 2003 3:08:09 am

I've create a new siteaccess and a new sitedesign (master).

I follow http://ez.no/developer/ez_publish_3/documentation/incoming/14_tutorial_make_a_new_design_from_demo

After I create my settings/siteaccess/master/override.ini.append and I put in this code:

[category]
Source=node/view/full.tpl
MatchFile=category.tpl
Subdir=templates
Match[class]=14

If I put "category.tpl" in design/master/override/templates override don't work, because I receive the standard template (and var/cache/override/anyname.php don't show any sentence for override nod/view/full with "category.tpl")

But if I put "category.tpl" in design/master/templates override work Ok.

Where should I put my templates for overriding standard templates?

Thanks in advance

Bjørn Kaarstein

Monday 08 September 2003 4:38:50 am

design/master/override/templates should be the correct directory to put your override templates.

Have you remembered to clear your cache?

Also, it sometimes can be a confusing matter on what to match in your override.ini.append.
Try to match directly on a node which is an instance of your class 14, to see if that works.

Regards Bjørn

Adolfo Barragán

Monday 08 September 2003 5:00:37 am

> Have you remembered to clear your cache?

Yes, I'm tired of clear my cache, I'm tired to fight with siteaccess and sitedesign and ... I have a spelling mistake!!! Sorry, I'm stupid. :-(

But I still have a problem, can you see my other message (I'm going crazy with siteaccess and sitedesign)

Thanks

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 31 2025 04:26:05
Script start
Timing: Jan 31 2025 04:26:05
Module start 'layout'
Timing: Jan 31 2025 04:26:05
Module start 'content'
Timing: Jan 31 2025 04:26:07
Module end 'content'
Timing: Jan 31 2025 04:26:07
Script end

Main resources:

Total runtime1.4943 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.0055 588.1328151.2109
Module start 'layout' 0.00550.0024 739.343836.6484
Module start 'content' 0.00791.4855 775.9922892.5391
Module end 'content' 1.49340.0009 1,668.53137.8516
Script end 1.4943  1,676.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2213160.0002
Check MTime0.00150.1005160.0001
Mysql Total
Database connection0.00100.065010.0010
Mysqli_queries1.439196.3026570.0252
Looping result0.00060.0400550.0000
Template Total1.444796.720.7223
Template load0.00210.137520.0010
Template processing1.442696.538620.7213
Template load and register function0.00160.104310.0016
states
state_id_array0.00240.158210.0024
state_identifier_array0.00330.219220.0016
Override
Cache load0.00170.1107260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043320.0003
Fetch class attribute name0.00270.182830.0009
XML
Image XML parsing0.00020.013920.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00140.0927100.0001
String conversion0.00000.000540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs