Author Topic

Thiago Campos Viana

Thursday 16 June 2011 6:36:00 am

Comment68710

The variable $node is only available by default inside $node templates ( full/line/embed ), not in pagelayout.tpl neither in custom modules templates. You can either:

  • Define a $node variable;
  • Set the template variable in the module view php file ( $tpl->setVariable( 'node', eZContentObjectTreeNode::fetch($node_id ) ); ), so you'll be able to access it inside the module view tpl;

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br