Forums / Setup & design / Use of {cache-block}

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