Use of {cache-block}

Author Message

Pascal France

Tuesday 19 September 2006 1:14:18 am

Hi,

I did a menu:
http://www.vistacite.fr/AAAAAA/index.php/plain/

which use this javascript function:

<script language="javascript" type="text/JavaScript">
 fixerSecteurCourant("secteur{$node.object.section_id}");
</script>

This function is used to keep the menu open when we click on a link.
In the link above, if you click on "Images/Image 1", Image 1 is displayed and the menu is closed. It should stay open (which is the case if I remove caches).

I read (and re-read) the cache-block doc:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/cache_block
and tested many things (as the cache-block parameters of the pagelayout.tpl) but the best result I get is that $node.object.section_id works 2 hours.

Could you explain me what parameter I have to use ?

Ragards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Norman Leutner

Tuesday 19 September 2006 1:25:13 am

Take a look at the documentation under:
http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_pagelayout/variables_in_pagelayout
or under
http://ez.no/products/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Pascal France

Tuesday 19 September 2006 4:59:20 am

Hi Norman,

Thank you for your reply.

It seems that:

<script language="javascript" type="text/JavaScript">
 fixerSecteurCourant("secteur{$module_result.section_id}");
</script>

works fine with any {cache-block}

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 01:25:28
Script start
Timing: Jan 31 2025 01:25:28
Module start 'layout'
Timing: Jan 31 2025 01:25:28
Module start 'content'
Timing: Jan 31 2025 01:25:28
Module end 'content'
Timing: Jan 31 2025 01:25:28
Script end

Main resources:

Total runtime0.0220 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1094151.1953
Module start 'layout' 0.00520.0031 739.3047220.6563
Module start 'content' 0.00830.0125 959.9609997.8984
Module end 'content' 0.02080.0012 1,957.859433.9922
Script end 0.0220  1,991.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.6630140.0002
Check MTime0.00115.0034140.0001
Mysql Total
Database connection0.00073.308210.0007
Mysqli_queries0.00198.580930.0006
Looping result0.00000.045410.0000
Template Total0.00093.910.0009
Template load0.00073.185910.0007
Template processing0.00020.721610.0002
Override
Cache load0.00052.272910.0005
General
dbfile0.00167.283880.0002
String conversion0.00000.027040.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