Help : Overriding Folder Template to view custom class

Author Message

Badrulhisham Bahadzor

Thursday 01 July 2004 4:25:22 am

Hello,

I've created a custom class, clinical_staff with attributes name, position and specialty.
A folder 'Staff' has been created to keep all the entries for clinical_staff. The node for this folder is 186 and it sits in the same section as everything else, section 1.

I created 2 template overrides, <b>clinical_staff_view</b> to view the <i>detail entry</i>, and, <b>clinical_staff_folder</b> to view the <i>list</i> of clinical_staff entries.

Problem :
clinical_staff_view works well, I can view the detailed entry of all my clinical staff. However clinical_staff_view still defaults to folder.tpl.

My settings/siteaccess/portal/override.ini.append for the 2 overrides are

[clinical_staff_view]
Match[class_identifier]=clinical_staff
Source=node/view/full.tpl
MatchFile=clinical_staff_view.tpl
Subdir=templates

[clinical_staff_folder]
Source=node/view/full.tpl
MatchFile=clinical_staff_folder.tpl
Subdir=templates
Match[class_identifier]=folder
Match[node]=186

<i>I can't figure out my mistake here, can anyone help ?</i> (cache has been disabled)

regards,
Badrul

Robin de Silva Jayasinghe

Monday 27 September 2004 9:00:30 am

i am facing the same problem.. have you already solved it ??

visit http://www.jayasinghe.de

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 23:00:02
Script start
Timing: Jan 18 2025 23:00:02
Module start 'layout'
Timing: Jan 18 2025 23:00:02
Module start 'content'
Timing: Jan 18 2025 23:00:04
Module end 'content'
Timing: Jan 18 2025 23:00:04
Script end

Main resources:

Total runtime1.6693 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0121 588.1563152.6563
Module start 'layout' 0.01210.0052 740.812539.5078
Module start 'content' 0.01731.6505 780.3203524.9141
Module end 'content' 1.66780.0014 1,305.23448.1094
Script end 1.6692  1,313.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2156160.0002
Check MTime0.00150.0892160.0001
Mysql Total
Database connection0.00160.097010.0016
Mysqli_queries1.616596.8401540.0299
Looping result0.00050.0325520.0000
Template Total1.616796.820.8083
Template load0.00210.124220.0010
Template processing1.614696.723220.8073
Template load and register function0.00020.011710.0002
states
state_id_array0.00150.088310.0015
state_identifier_array0.00190.112920.0009
Override
Cache load0.00170.0994170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.042320.0004
Fetch class attribute name0.00160.093130.0005
XML
Image XML parsing0.00380.226120.0019
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00450.2684160.0003
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs