*Title: No more $node variable in pagelayout.
*Documentation:
Global $node variable only exists in pagelayout template if it was set
by any other module which has run before fetching pagelayout template
and viewcache is disabled. Thus it is removed from pagelayout at all to
do not cause any confusions henceforth.
$module_result.node_id should be used to fetch current operated node in
a pagelayout template. Or you can pass any node id you need to fetch
through 'module_result' array from your own module to pagelayout as it
is shown in example below:
==============================
//// your_module.php file
...
$Result['some_node_id'] = $anyNodeIdYouNeed;
...
===============================
//// pagelayout.tpl file
...
{def $somenode = fetch( content, node, hash( node_id, $module_result.some_node_id ) )}
...
{$somenode}
...
No more $node variable in pagelayout
Global $node variable only exists in pagelayout template if it was set by any other module which has run before fetching pagelayout template and viewcache is disabled. Thus it is removed from pagelayout at all to do not…
Address: https://doc.exponential.earth/exphelp/viewer/features/3.9/no_more_node_in_pagelayout.txt
Documentation license
This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.
Copyright (C) 1999 - 2014 eZ Systems AS and contributors