Forums / Developer / Caching problem.. / Comment46821

Author Topic

Norman Leutner

Tuesday 19 September 2006 8:43:25 am

Comment46821

Using $node.node_id should work fine within your template.

What happens if you set the Cache time to 0?

{set-block scope=root variable=cache_ttl}0{/set-block}

Have you ever tried setting a specific cache block within the pagelayout.tpl?
More information here on cache blocks:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/cache_block

This should work fien for your images:

{attribute_view_gui image_class=original attribute=$element.data_map.image
 href=$element.url_alias|ezurl()}

instad of

<a href={$element.url_alias|ezurl()}>{attribute_view_gui image_class=original attribute=$element.children[1].data_map.image.content.data_map.image}</a>

Mit freundlichen Grüßen
Best regards

Norman Leutner

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