Custom line template

Author Message

Lance Leger

Monday 30 August 2004 8:20:58 am

I've created a custom line template for my event class. I would like for the custom line template to be displayed when the "Show Children" box is checked on a folder. This works with several default line templates for existing classes. How can I achieve this result?

Hans Melis

Monday 30 August 2004 9:10:45 am

Hi Lance,

That should be default behaviour, unless you've made your own overrides for node/view/full.tpl for the Folder class. The "base" override for the folder class only fetches children when that checbox is checked.

If you've made your own override, take a look at the file /design/base/override/templates/full/folder.tpl to see how you can achieve the same thing.

Hans
http://blog.hansmelis.be

Thomas Johannessen

Thursday 04 November 2004 7:07:44 am

I cant make my templates override to work;
a folder view for a spesific node:

[full_folder_person]
Source=folder.tpl
MatchFile=folder_person.tpl
Subdir=templates
Match[class_identifier]=folder
Match[node]=70

any who knows why??

please


www.taon.no

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

Main resources:

Total runtime1.4715 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0234152.6250
Module start 'layout' 0.00500.0028 741.648439.4453
Module start 'content' 0.00781.4621 781.0938569.4063
Module end 'content' 1.46990.0016 1,350.500012.1719
Script end 1.4715  1,362.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2650160.0002
Check MTime0.00140.0982160.0001
Mysql Total
Database connection0.00060.040210.0006
Mysqli_queries1.417696.3327590.0240
Looping result0.00060.0402570.0000
Template Total1.444498.220.7222
Template load0.00190.130520.0010
Template processing1.442598.023320.7212
Template load and register function0.00030.023310.0003
states
state_id_array0.00070.047110.0007
state_identifier_array0.00160.108920.0008
Override
Cache load0.00160.1093210.0001
Sytem overhead
Fetch class attribute can translate value0.00170.114930.0006
Fetch class attribute name0.00120.078350.0002
XML
Image XML parsing0.00430.291330.0014
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00370.2491210.0002
String conversion0.00000.000440.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs