Forums / General / Override.ini question

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!

eZ debug

Timing: Jan 18 2025 16:20:42
Script start
Timing: Jan 18 2025 16:20:42
Module start 'content'
Timing: Jan 18 2025 16:20:42
Module end 'content'
Timing: Jan 18 2025 16:20:42
Script end

Main resources:

Total runtime0.0202 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.7188180.8516
Module start 'content' 0.00890.0049 769.570393.9297
Module end 'content' 0.01380.0063 863.500070.7031
Script end 0.0201  934.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00209.9465120.0002
Check MTime0.00094.6096120.0001
Mysql Total
Database connection0.00062.762510.0006
Mysqli_queries0.003115.410040.0008
Looping result0.00000.074520.0000
Template Total0.006029.610.0060
Template load0.00084.056210.0008
Template processing0.005125.465310.0051
Override
Cache load0.00052.638310.0005
General
dbfile0.00052.3959100.0000
String conversion0.00000.048530.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs