Forums / Developer / Cache-block problem / Comment48138
Atle Pedersen
Friday 04 May 2007 1:06:28 am
The point/problem is that you're not always showing a node. Sometimes you show views from other modules, for example the login screen. In these cases having a $node variable is meaningless.
Therefor you should also check for the existence of $module_result.node_id before using it.
Read more on this friendly page: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_pagelayout/variables_in_pagelayout