one class and different templates?

Author Message

mario feichtinger

Wednesday 16 July 2003 3:05:38 am

hello!
how can i use for one class two different templates?
i have one folder [object 59] in this folder are events [class 14]. this events should be displayed in a list with the next three events and in a list with the other events.
how can i make this work?

override.ini

[line_events]
Source=node/view/line.tpl
MatchFile=line_events.tpl
SubDir=templates
Match[class]=14

[line_nextevents]
Source=node/view/line.tpl
MatchFile=line_nextvents.tpl
SubDir=templates
Match[node]=14

perhaps this is correct!
if it is correct, how looks like the link for these sites?
/content/view/full/59?

thanks!
mario

mario feichtinger

Wednesday 16 July 2003 11:47:42 pm

i found it -> in thread "creating view_mode_gui"!

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

Main resources:

Total runtime0.8914 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.9375152.6250
Module start 'layout' 0.00860.0048 740.562539.4453
Module start 'content' 0.01340.8765 780.0078428.3984
Module end 'content' 0.88990.0014 1,208.40638.1563
Script end 0.8914  1,216.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3996160.0002
Check MTime0.00140.1575160.0001
Mysql Total
Database connection0.00150.173610.0015
Mysqli_queries0.845194.8025520.0163
Looping result0.00060.0634500.0000
Template Total0.852295.620.4261
Template load0.00220.247820.0011
Template processing0.850095.353620.4250
Template load and register function0.00020.017610.0002
states
state_id_array0.00190.209110.0019
state_identifier_array0.00170.192520.0009
Override
Cache load0.00180.2039250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.059210.0005
Fetch class attribute name0.00110.123520.0006
XML
Image XML parsing0.00010.014310.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0742100.0001
String conversion0.00000.001540.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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0001 secs