Author Topic

Paul Borgermans

Thursday 25 September 2003 6:04:23 am

Comment13654

Hi Vivienne,

You van use $node in view templates for nodes:

like /node/view/[full|line|...].tpl or in your overrides for this.

When you use $node here, it will work regardless of caching: when it is cached, it won't call the template at all.

It is *not* valid in pagelayout templates. Here you have to use $module_result... from which you can grab the nodeid and do a fetch for the node if you need that. This is also always valid (as far as I tested it)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans