I'm looking to embed a CCK node creation form into page-front.tpl.php.
Then, using AJAX, I plan to have the front page updated with the new CCK content without having to refresh the page.
Does anybody have any hints? I was thinking of using the AJAX submit module, but I don't know how to include a CCK input form into a normal page.

Comments

Jerimee’s picture

How do you embed a CCK node creation form into a page?

grobemo’s picture

It may not do exactly what you want, but you could look at the Popups module.

Jerimee’s picture

I don't know why or how it works - but it worked :)

http://drupal.org/node/261495#comment-1616098

<?php
$new_blognode = new stdClass();
$new_blognode->type = 'blog';
module_load_include('inc', 'node', 'node.pages');
$output .= drupal_get_form('blog_node_form', $new_blognode);
?>