Share » Forums » General » module and nodes

module and nodes

module and nodes

Tuesday 15 January 2008 3:12:20 am - 1 reply

Author Message

Ɓukasz Serwatka

Saturday 26 January 2008 1:23:28 pm

Hi Philippe,

Most likely $node variable is not defined. In your PHP code for module view definition you will need to add something like:

$node = eZContentObjectTreeNode::fetch( <node_id>);
$tpl->setVariable( 'node', $node );

then in tpl you can access $node.node_id and other node attributes if needed. You can also of course pass node_id as view parameter.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

36 542 Users on board!

Forums menu