16 Sep
2008
16 Sep
'08
11:27 p.m.
Ámon Tamás wrote:
The php code is the: <?php $node = node_load(15); echo $node->title; echo $node->body ?>
The $node variable is an object. You can see the elemnts of this with the print_r or var_dump function. The node_loads parameter is the node id (nid). A more complete method would use node_view, since the above method won't properly render content from other modules (such as cck)
<?php $node = node_load(15); echo $node->title; echo node_view($node); ?> http://api.drupal.org/api/function/node_view/6 Cheers, Jonathan -- Jonathan Hedstrom OpenSourcery http://opensourcery.com Technology for Good