Override.ini question

Author Message

Philip K.

Wednesday 15 August 2007 12:51:39 am

Hi.

I want to create an override file which is used by several nodes. Is there a way to create an entry in override.ini.append.php like this?


[full_xxx]
Source=node/view/full.tpl
MatchFile=full/xxx.tpl
Subdir=templates
Match[class_identifier]=xxx
Match[section]=7
Match[node]=node id
Match[node]=one more node id
Match[node]=one more node id
Match[node]=one more node id

Thanks for your help,
Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Bruce Morrison

Wednesday 15 August 2007 2:04:26 am

Hi Phillip

Nope. You'll have to do an entry for each node unless you can group the nodes by section or some other method.

BTW you can drop the Match[class_identifier]=xxx & Match[section]=7 lines as you can't get any more unique than [node].

[full_xxx]
Source=node/view/full.tpl
MatchFile=full/xxx.tpl
Subdir=templates
Match[node]=node id

[full_yyy]
Source=node/view/full.tpl
MatchFile=full/xxx.tpl
Subdir=templates
Match[node]=other node id

...

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Philip K.

Wednesday 15 August 2007 5:09:42 am

Hi Bruce.

Yes, I think the best way is to set up some new sections for these nodes.
Thanks for your help.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

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:03:56
Script start
Timing: Jan 18 2025 19:03:56
Module start 'layout'
Timing: Jan 18 2025 19:03:56
Module start 'content'
Timing: Jan 18 2025 19:03:57
Module end 'content'
Timing: Jan 18 2025 19:03:57
Script end

Main resources:

Total runtime0.9799 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.0080 588.9297152.6094
Module start 'layout' 0.00800.0047 741.539139.4141
Module start 'content' 0.01270.9656 780.9531540.6016
Module end 'content' 0.97830.0016 1,321.554712.1875
Script end 0.9799  1,333.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4098160.0003
Check MTime0.00150.1579160.0001
Mysql Total
Database connection0.00130.128810.0013
Mysqli_queries0.908592.7117570.0159
Looping result0.00060.0625550.0000
Template Total0.922694.120.4613
Template load0.00260.266420.0013
Template processing0.920093.878620.4600
Template load and register function0.00030.031610.0003
states
state_id_array0.00730.746710.0073
state_identifier_array0.00080.083320.0004
Override
Cache load0.00210.2138230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.073420.0004
Fetch class attribute name0.00140.139950.0003
XML
Image XML parsing0.00150.153820.0008
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00170.1761220.0001
String conversion0.00000.001240.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/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs