Template override confused

Author Message

Aya Brea

Saturday 29 November 2003 3:58:33 pm

I included this in my design's override.ini.append file:

[folderview]
Source=node/view/full.tpl
MatchFile=classview/folderview.tpl
Subdir=templates
Match[class]=1

Cause I want to use folderview.tpl to view folder only. But when I try to view an article (which have class id = 2). It show nothing, even it doesn't include the template file in pagelayout.tpl?!?!!

So confused, if I add another block like this in to the override.ini.append. It worked! This make I cannot understand...

[folderview]
Source=node/view/full.tpl
MatchFile=node/view/full.tpl
Subdir=templates
Match[class]=2

Arash Molavi

Sunday 30 November 2003 1:52:35 pm

You didn't have a doublette of the [folderview]?

Aya Brea

Sunday 30 November 2003 9:25:27 pm

oops, actually the name is different, copy'npaste mistake :D

I have solved the problem by change the override.ini.append to following:

[generalview]
Source=node/view/full.tpl
MatchFile=node/view/full.tpl
Subdir=templates

This block will match everything.

[folderview]
Source=node/view/full.tpl
MatchFile=classview/folderview.tpl
Subdir=templates
Match[class]=1

This block match class 1.

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

Main resources:

Total runtime0.0196 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.0068 589.1563152.6250
Module start 'layout' 0.00680.0037 741.781339.4453
Module start 'content' 0.01060.0066 781.226689.3203
Module end 'content' 0.01710.0023 870.546930.3047
Script end 0.0195  900.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.7027140.0002
Check MTime0.00136.3931140.0001
Mysql Total
Database connection0.00126.338310.0012
Mysqli_queries0.003919.776530.0013
Looping result0.00000.097510.0000
Template Total0.00199.610.0019
Template load0.00115.648510.0011
Template processing0.00083.946010.0008
Override
Cache load0.00083.992310.0008
General
dbfile0.00168.087180.0002
String conversion0.00000.062240.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.0001 secs