Embed Node Content
- Posted By:smoothdzion
- Category:Pages, Nodes, Misc
- Type:PHP
- Views:1901
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
?>
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();
?>
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
VL1COX life insurance =-) home insurance %P homeowners insurance quotes =-P supplemental health insurance 869 cheap health insurance %-O home insurance quotes %[
Thanks for the code.
surety bonds