I would like to put content of one node into another. Is that possible?

Within other words: I have some content type 'about us' which has fields title and body. I would like to put webform in that body (information page) which is different content type/node. Is that possible?

Maybe some php function like get_content_from_node() ?

Many thanks in advance!

Comments

zeta ζ’s picture

http://drupal.org/node/101920 Nodereference?
___________________
It’s in the detaιls…

demonstration portfolio

bwv’s picture

Paste this in a node. Replace node/12 below with the id of the node you want to insert into the new node. Set input format to php code.

<?php
$q = $_GET['q'];
$_GET['q'] = 'node/12';
print menu_execute_active_handler();
$_GET['q'] = $q;
?>

----------------------------------------------------------------------
http://www.bwv810.com/

I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу общаться на русском языке.

mooffie’s picture

$_GET['q'] = 'node/12';
print menu_execute_active_handler();

This isn't a very good solution, because it'll update the title and the breadcrumbs to that of node #12. Better to use node_load and node_view. There's an 'InsertNode' filter module that supports '[node:123]'.