Match multiple nodes with override

Author Message

Ulrich L.

Wednesday 25 April 2007 12:55:14 am

Hi,
I would like to match multiple nodes with one override template, like this

[ABC_folder_full]
Source=node/view/full.tpl
MatchFile=ABC_folder_full.tpl
Subdir=templates
Match[node]=69
Match[node]=79

However, this doesn't work. Only one node is overridden.
Is there a way to do something like this?
The target is to override just those two nodes with one and the same template.

Thanks for any help in advance.

Nabil Alimi

Wednesday 25 April 2007 1:23:40 am

Hi Ulrich,

I'm afraid this is not possible. You need to duplicate your override entry for every node you need.
But you might find suitable override rules that works for your case here : http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_override_conditions.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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

Main resources:

Total runtime0.0206 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.0156152.6250
Module start 'layout' 0.00720.0048 740.640639.4453
Module start 'content' 0.01200.0066 780.085989.4609
Module end 'content' 0.01860.0021 869.546930.3047
Script end 0.0206  899.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.5082140.0002
Check MTime0.00125.5738140.0001
Mysql Total
Database connection0.00178.066210.0017
Mysqli_queries0.005224.981830.0017
Looping result0.00000.110910.0000
Template Total0.00178.010.0017
Template load0.00094.402710.0009
Template processing0.00073.588510.0007
Override
Cache load0.00063.002910.0006
General
dbfile0.00167.692080.0002
String conversion0.00000.049740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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