Different layout for entire subtree

Author Message

Maurizio Amateis

Friday 04 May 2007 5:08:33 am

I have this problem, I have a left menu with some nodes, for one of these nodes (i call it MyNode) i want a completely different layout.
I've modified override.ini adding:

[full_view_news_esterne]
Source=pagelayout.tpl
MatchFile=full_view_news_esterne.tpl
Subdir=templates
Match[node]=64

where 64 is MyNode and full_view_news_esterne.tpl is the different layout.

When i click on that node i can see the different layout with a list of articles.
The problem is that when i click on one of my articles layout come back to the original one.

What have i to do to have the same layout for MyNode and for all articles under it ?

Hope i explained well my problem and that someone can help me.

MA

Maurizio Amateis

Friday 04 May 2007 5:41:51 am

Solved

Instead of:

Match[node]=64

i've put:

Match[url_alias]=MyNode

Now new layout works for MyNode and all articles under it.

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

Main resources:

Total runtime0.6011 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0313152.6406
Module start 'layout' 0.00680.0037 740.671939.4609
Module start 'content' 0.01050.5891 780.1328426.0156
Module end 'content' 0.59960.0015 1,206.14848.1563
Script end 0.6011  1,214.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5410160.0002
Check MTime0.00130.2225160.0001
Mysql Total
Database connection0.00140.236210.0014
Mysqli_queries0.556192.5129520.0107
Looping result0.00040.0653500.0000
Template Total0.569994.820.2849
Template load0.00210.352720.0011
Template processing0.567794.442420.2839
Template load and register function0.00020.026510.0002
states
state_id_array0.00070.122410.0007
state_identifier_array0.00100.174220.0005
Override
Cache load0.00180.2935230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.082510.0005
Fetch class attribute name0.00090.144920.0004
XML
Image XML parsing0.00010.017510.0001
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00070.1171100.0001
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs