Template override/sub-override

Author Message

Carl Heaton

Wednesday 09 March 2005 1:13:13 am

I have the following override for paths such as `http://www.domain.com/topics/topic_parent/topic_name`:

[topic_top]
Source=node/view/full.tpl
MatchFile=content/topic/topic_layout.tpl
Match[class_identifier]=topic_top
Subdir=templates

I'd like to have another override for `http://www.domain.com/topics/topic_parent/topic_name/all`. Would I need to create some sort of class/node for `all` or can this be done using `Match[depth]`?

Any pointers are appreciated.

Cheers,
Carl

---
Carl
{'EZP 3.5, Apache 2, FC2, PHP 4.3.4 (cgi), MySQL 4.1.9'}

Ɓukasz Serwatka

Wednesday 09 March 2005 2:27:59 am

Hi Carl,

Would I need to create some sort of class/node for `all` or can this be done using `Match[depth]`?

You can use class if "all" is the same class what "topic_name" for example. You can also use, node or url_alias which match the URL alias of a node.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 18 2025 22:12:37
Script start
Timing: Jan 18 2025 22:12:37
Module start 'layout'
Timing: Jan 18 2025 22:12:37
Module start 'content'
Timing: Jan 18 2025 22:12:37
Module end 'content'
Timing: Jan 18 2025 22:12:37
Script end

Main resources:

Total runtime0.0166 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.0063 589.3438152.6250
Module start 'layout' 0.00630.0030 741.968839.4609
Module start 'content' 0.00930.0050 781.429789.4453
Module end 'content' 0.01430.0022 870.875030.3047
Script end 0.0165  901.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.3067140.0002
Check MTime0.00127.0890140.0001
Mysql Total
Database connection0.00158.840110.0015
Mysqli_queries0.003219.248730.0011
Looping result0.00000.096310.0000
Template Total0.001710.310.0017
Template load0.00095.661510.0009
Template processing0.00084.632110.0008
Override
Cache load0.00074.022510.0007
General
dbfile0.00021.447780.0000
String conversion0.00000.048940.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