right sidebar context infos dependent. How to ?

Author Message

Ekkehard Dörre

Thursday 14 April 2005 2:04:37 am

Sorry, no idea anymore,

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

laurent le cadet

Thursday 14 April 2005 2:23:50 am

No problem ;))), thank you very much for your help and your time.

if it's not too much...you were talking above about my futur needs and you were right because I need to print, in toolbar, context infos (class infos) which are store at the root of a folder even if the current node is a subitem of this folder (e.g. article).

I read the different threads but I can't reproduce that.

At this point, toolbar/full/infos.tpl looks still like this :

{section name=Enfants loop=fetch(content, list, hash(
parent_node_id, $DesignKeys:used.node,
class_filter_type, include,
class_filter_array, array( 'infos' ) ) )}
{node_view_gui view=full content_node=$Enfants:item}
{/section}

My problem is that I don't really understand how to step back from $DesignKeys:used.node.

Laurent

Ekkehard Dörre

Thursday 14 April 2005 2:47:31 am

Never tried. Worked for me like in example:
http://ez.no/ez_publish/documentation/incoming/how_to_find_the_parent_and_grandparent_of_an_object

You can look, what result you get in template.

module_result <br />{$module_result|attribute(show,2)}
designkeys <br />{$DesignKeys:used|attribute(show,2)}
view_parameters <br />{$view_parameters|attribute(show)}
uri_string {$uri_string} <br />
site <br />{$site|attribute(show)}
ezinfo <br /> {$ezinfo|attribute(show)}

http://www.ez.no/ez_publish/documentation/reference/template_operators/miscellaneous/attribute

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 19 2025 06:24:22
Script start
Timing: Jan 19 2025 06:24:22
Module start 'layout'
Timing: Jan 19 2025 06:24:22
Module start 'content'
Timing: Jan 19 2025 06:24:23
Module end 'content'
Timing: Jan 19 2025 06:24:23
Script end

Main resources:

Total runtime1.0732 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.8125152.6406
Module start 'layout' 0.00580.0035 742.453139.9375
Module start 'content' 0.00931.0623 782.3906534.2969
Module end 'content' 1.07160.0016 1,316.687514.2578
Script end 1.0732  1,330.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2894160.0002
Check MTime0.00130.1171160.0001
Mysql Total
Database connection0.00070.069110.0007
Mysqli_queries1.022695.2893560.0183
Looping result0.00070.0638540.0000
Template Total1.036896.620.5184
Template load0.00170.162020.0009
Template processing1.035096.444420.5175
Template load and register function0.00010.010210.0001
states
state_id_array0.00100.096110.0010
state_identifier_array0.00170.161520.0009
Override
Cache load0.00140.1327230.0001
Sytem overhead
Fetch class attribute can translate value0.00130.120520.0006
Fetch class attribute name0.00120.110850.0002
XML
Image XML parsing0.00090.088220.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00100.0926220.0000
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs