Render the node object for presentation view

This is how you can render the node object for presentation. With the variable $node_out you get the ready to use HTML code for the node content. The $node object get extended with view elements for CCK fields and body is ready to use HTML.

<?php
$node
= node_load($nid);
$node_out = node_view($node);

print
$node_out;

?>

<pre>
<?php
  print_r
($node);
 
?>

</pre>
<?php
?>
Knowledge keywords: