Using templates more than once?

Author Message

Clemens T

Wednesday 11 May 2005 2:45:31 am

Heya all,
I was wondering if it is possible for me to specify more than one section/node/class for a template. It would be redundant to copy the templates I'd say. Please let me know if this is possible, so if I edit this one template, both pages will change.
Greets,
Clemens
ps: I'm not afraid of the ini files, so if it's only possible through there I'd love to hear it;).

edit: obviously I'm talking about an override here.

Giovanni Gigante

Wednesday 11 May 2005 2:55:01 am

Unless I'm missing something in your question...
Yes, you can.
Just create all the overrides you need, pointing to the same template file.

In certain cases (e.g. same templates for different siteaccesses, thus in different directories) I have also found convenient to use simlinks in the file system ("ln -s" in unix).

Clemens T

Wednesday 11 May 2005 3:22:53 am

OK, but can I do this in the admin-interface or?
I'm now creating the several templates as override for full.tpl, and I see I can edit them and load the defaults, but I can't really seem to change the file they're pointing to.

Sorry if this is a newbie question, just learning ezPublish :).

Thank you very much for your help,
Clemens

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 19:34:29
Script start
Timing: Jan 18 2025 19:34:29
Module start 'layout'
Timing: Jan 18 2025 19:34:29
Module start 'content'
Timing: Jan 18 2025 19:34:30
Module end 'content'
Timing: Jan 18 2025 19:34:30
Script end

Main resources:

Total runtime1.4565 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9141152.6250
Module start 'layout' 0.00610.0036 740.539139.4609
Module start 'content' 0.00971.4454 780.0000469.2422
Module end 'content' 1.45510.0014 1,249.24228.1641
Script end 1.4565  1,257.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2380160.0002
Check MTime0.00130.0904160.0001
Mysql Total
Database connection0.00060.041310.0006
Mysqli_queries1.413697.0546570.0248
Looping result0.00060.0378550.0000
Template Total1.422197.620.7110
Template load0.00230.156920.0011
Template processing1.419897.476520.7099
Template load and register function0.00010.008610.0001
states
state_id_array0.00110.073910.0011
state_identifier_array0.00140.094820.0007
Override
Cache load0.00190.1328200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.045720.0003
Fetch class attribute name0.00140.097130.0005
XML
Image XML parsing0.00020.017120.0001
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00070.0455100.0001
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs