Different templates between pagelayout and print_pagelayout

Author Message

Børge Warvik

Friday 26 May 2006 1:15:39 am

Hi

How can I get different template for "node/view/full.tpl" between pagelayout.tpl and print_pagelayout.tpl?

I'm not sure about the rules for this in the override...

Kristof Coomans

Friday 26 May 2006 1:56:59 am

Hi Børge

I think you can use Match["layout"]=print, because "layout" is set as a design key in the layout/set view (kernel/layout/set.php).

Let us know if it worked.

Good luck!

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

Børge Warvik

Friday 26 May 2006 2:41:04 am

Hi

Tried this:

[treatment_form_full_print]
Source=node/view/full.tpl
MatchFile=full/treatment_form_print.tpl
Subdir=templates
Match[class_identifier]=treatment_form
Match["layout"]=print

[treatment_form_full]
Source=node/view/full.tpl
MatchFile=full/treatment_form.tpl
Subdir=templates
Match[class_identifier]=treatment_form

If I haven't done anything wrong it didn't work :( Any other ideas?

Marcin Drozd

Friday 26 May 2006 2:59:23 am

Hi Børge
It works with
Match[layout]=print
not with
Match["layout"]=print

http://ez-publish.pl

Børge Warvik

Friday 26 May 2006 3:45:48 am

That worked!

Great thanks!

Kristof Coomans

Friday 26 May 2006 10:34:57 am

It works with
Match[layout]=print
not with
Match["layout"]=print

Sorry, my mistake :-)

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

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 21 2025 15:52:41
Script start
Timing: Jan 21 2025 15:52:41
Module start 'layout'
Timing: Jan 21 2025 15:52:41
Module start 'content'
Timing: Jan 21 2025 15:52:42
Module end 'content'
Timing: Jan 21 2025 15:52:42
Script end

Main resources:

Total runtime1.1805 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2891151.2422
Module start 'layout' 0.00540.0028 740.531336.7109
Module start 'content' 0.00821.1715 777.2422629.4609
Module end 'content' 1.17970.0008 1,406.703115.7813
Script end 1.1805  1,422.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2600160.0002
Check MTime0.00130.1105160.0001
Mysql Total
Database connection0.00080.068510.0008
Mysqli_queries1.079991.4822680.0159
Looping result0.00060.0540660.0000
Template Total1.074591.020.5372
Template load0.00220.183320.0011
Template processing1.072390.837020.5362
Template load and register function0.00010.009310.0001
states
state_id_array0.00400.342310.0040
state_identifier_array0.00160.138220.0008
Override
Cache load0.00180.1550330.0001
Sytem overhead
Fetch class attribute can translate value0.00060.054330.0002
Fetch class attribute name0.00130.106680.0002
XML
Image XML parsing0.00120.104130.0004
class_abstraction
Instantiating content class attribute0.00000.0020110.0000
General
dbfile0.04463.7796220.0020
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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
1content/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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs