Design keys in other than pagelayout template

Author Message

Thomas Larsen

Tuesday 11 July 2006 5:12:55 am

Is it a way to use the design keys, exp. $uri_string, in other than the pagelayout template. I try to cache content for different pages by using:

{cache-block keys=$uri_string}
     {attribute_view_gui attribute=$node.object.data_map.wysindhold}
{/cache-block}

This doesn’t work when its not the pagelayout template you working with.

---------------------------------------------------------------------

Thomas Stage Larsen
System Developer

e : tsl@ez.no | m: +45 26 12 47 61 | eZ systems A/S | w: www.ez.no

Ɓukasz Serwatka

Monday 17 July 2006 11:21:53 pm

You can use $node.path_string or just $node.node_id which is unique.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 10:09:33
Script start
Timing: Jan 31 2025 10:09:33
Module start 'layout'
Timing: Jan 31 2025 10:09:33
Module start 'content'
Timing: Jan 31 2025 10:09:34
Module end 'content'
Timing: Jan 31 2025 10:09:34
Script end

Main resources:

Total runtime1.1651 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.2656151.2266
Module start 'layout' 0.00640.0021 739.492236.6797
Module start 'content' 0.00851.1556 776.1719919.8984
Module end 'content' 1.16410.0010 1,696.07037.9688
Script end 1.1651  1,704.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2821160.0002
Check MTime0.00130.1085160.0001
Mysql Total
Database connection0.00090.077010.0009
Mysqli_queries1.105194.8493540.0205
Looping result0.00050.0421520.0000
Template Total1.128596.920.5643
Template load0.00240.202820.0012
Template processing1.126196.655120.5631
Template load and register function0.00150.124910.0015
states
state_id_array0.00130.109210.0013
state_identifier_array0.00140.118120.0007
Override
Cache load0.00180.156190.0002
Sytem overhead
Fetch class attribute can translate value0.00060.050120.0003
Fetch class attribute name0.00270.229930.0009
XML
Image XML parsing0.00480.414320.0024
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00690.5946180.0004
String conversion0.00000.000740.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/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs