Different templates for the same class, and in same section?

Author Message

Kjerand Pedersen

Tuesday 22 July 2003 2:55:33 pm

I have a custom class for storing information about users. I publish content to two different folders, using the same class (16). I need to have a different design for the class, when viewed in 'line', for the two folders. One of the folders node_id is 65.

This is what I tried:

[line_profil2]
Source=node/view/line.tpl
MatchFile=line_profil2.tpl
Subdir=templates
Match[parent_node]=65
Match[class]=16

[line_profil]
Source=node/view/line.tpl
MatchFile=line_profil.tpl
Subdir=templates
Match[class]=16

Why isn't this working?

(This is my 4th post on the forum with no reply, I hope someone can help me out this time :-) - I've spendt hours searching for answers on the forums, sdk and the docs, but found nothing)

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 03:32:54
Script start
Timing: Jan 31 2025 03:32:54
Module start 'layout'
Timing: Jan 31 2025 03:32:54
Module start 'content'
Timing: Jan 31 2025 03:32:54
Module end 'content'
Timing: Jan 31 2025 03:32:54
Script end

Main resources:

Total runtime0.0252 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.3906151.2422
Module start 'layout' 0.00510.0038 739.6328220.7500
Module start 'content' 0.00890.0145 960.3828993.7578
Module end 'content' 0.02340.0017 1,954.140629.9922
Script end 0.0251  1,984.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.3616140.0002
Check MTime0.00114.4675140.0001
Mysql Total
Database connection0.00072.614610.0007
Mysqli_queries0.002710.607930.0009
Looping result0.00000.099510.0000
Template Total0.00135.210.0013
Template load0.00104.057310.0010
Template processing0.00031.089410.0003
Override
Cache load0.00072.872210.0007
General
dbfile0.00062.380680.0001
String conversion0.00000.024640.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