Okay, this may sound like a strange question, but is there any way to embed one node inside another? For instance, I'd like to have a page where I could have some static content, but where I could also embed a taxonamy view below the static content for that page. I'm willing to install a module if that's what it takes. Can anyone help me with this?

Comments

pwolanin’s picture

There are lots of ways to do this- if it's on a limited basis, you can just put the PHP code in your pages. See the snippets section: http://drupal.org/handbook/customization/php-snippets

---
Work: BioRAFT

US421’s picture

at least it does in 4.6.


<blockquote><?php
$MrNode = node_load(array("nid" => 1));
print $MrNode->body;?>
</blockquote>
<em>-<?php print $MrNode->title;?></em>

Replace the 1 with the nid you want.

I found this on http://www.nicklewis.org/ but it is gone from there now.

pwolanin’s picture

This isn't quite right- if you're going to print the node body directly it's important to filter it based on the filter settings to avoid outputting malicious code.

---
Work: BioRAFT

cog.rusty’s picture

Another way is the "insert view" module (http://drupal.org/project/insert_view)

Of course it requires the "views" module (http://drupal.org/project/views) to create the views which you are going to insert,

Or the "insert block" module (http://drupal.org/project/block_tags).

saltspringer’s picture

Could I use the Views module to create a page in which the top part was an editable field where I could put up news or other things, and the bottom part was Events.

What I would like to do is have the Events as it is, but with a space above to post notices and other things.

What's the best way to accomplish that?

B B Kristopher’s picture

This worked perfectly, thanks

B. B. Kristopher
http://www.bbkristopher.com

rubenk’s picture

I Thought that the panels plugin allows you to do this

alex_b’s picture

viewfield allows you to embed a view into a CCK node.

former username: lx_barth