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.