$node / $module_result / $DesignKeys question

$node / $module_result / $DesignKeys question

Thursday 25 September 2003 1:42:55 am - 2 replies

Modified on Thursday 25 September 2003 1:43:43 am by Vivienne van Velzen

Author Message

Paul Borgermans

Thursday 25 September 2003 6:04:23 am

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

Vivienne van Velzen

Thursday 25 September 2003 11:36:07 pm

Thanks Paul,

This certainly helped clear things up for me. Now I can bring some structure into my pages, as I was using $node and $module_result willynilly throughout the site.

Vivienne

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.