override keys

Author Message

j jevack

Thursday 27 October 2005 11:30:20 am

When overriding a template why do some templates have the override keys options and others do not?

I need to override a template only when specific sections are called. How can I do this when there are no override keys options presented?

Thanks,

Jason

Kristof Coomans

Friday 28 October 2005 9:41:02 am

Which template(s) do you need to override?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

j jevack

Saturday 29 October 2005 8:36:49 am

I need to override a template I created. Here is what I am attempting to accomplish:

I created a pagelayout.tpl which contains a header.tpl and footer.tpl and a default_content.tpl. I want to override the default_content.tpl for different sections of the website so as to present a unique 'look' for each department of the company.

I have each department setup as a folder object. Some departments are closely related and will share a 'look', so I created sections that hold these closely related departments. I want to apply an override for each section. After reading the docs, I planned on setting the override keys to Class=All Classes and Section=Department1. However, I do not have the keys interface presented when setting an override on my template.

I have managed to override the template by manually adding an entry to the override.ini file.

I have two questions: first, am I using the template override system correctly and second, why isn't the override keys interface presented when attempting override the template I created?

Thanks,

Jason

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 19 2025 07:25:08
Script start
Timing: Jan 19 2025 07:25:08
Module start 'layout'
Timing: Jan 19 2025 07:25:08
Module start 'content'
Timing: Jan 19 2025 07:25:09
Module end 'content'
Timing: Jan 19 2025 07:25:09
Script end

Main resources:

Total runtime1.0788 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.0048 590.1641152.6094
Module start 'layout' 0.00480.0032 742.773439.4141
Module start 'content' 0.00801.0693 782.1875529.9453
Module end 'content' 1.07730.0015 1,312.132812.3516
Script end 1.0788  1,324.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3080160.0002
Check MTime0.00140.1276160.0001
Mysql Total
Database connection0.00060.051910.0006
Mysqli_queries1.029895.4610570.0181
Looping result0.00060.0555550.0000
Template Total1.046897.020.5234
Template load0.00240.219020.0012
Template processing1.044596.817120.5222
Template load and register function0.00020.021510.0002
states
state_id_array0.00100.088410.0010
state_identifier_array0.00130.121620.0007
Override
Cache load0.00180.1669180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076620.0004
Fetch class attribute name0.00120.114140.0003
XML
Image XML parsing0.00060.056720.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00070.0680160.0000
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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs