Embed Node Content

This is the code you can use to embed one node's content into another node.

Snippet:

<?php
     $node
= node_load(15);
     echo
$node->title;
     echo
$node->body
?>

Comments

joshmiller

A couple of node_load()s and your site will come to a crawl. If you are interested in loading the "current" block, this seems to work well when used in blocks with php turned on without the use of node_load():

<?php
$currentnode
= menu_get_object();
?>

inchirierimasini

smart one i like the node linking idea. You can also play with alinks the plugin and customize it to do something similar.

I have that on my Rent a Car site

followspring

Thanks for the code.
surety bonds