Embed Drupal node form anywhere
Embed Drupal node form anywhere
Posted on Tuesday, 10 January, 2012 - 13:24
Simple 1 line of code to embed a Drupal node form anywhere in your site although I would recommend doing it the Drupal way which is creating a custom module for this.
print drupal_render(node_add('NODE_TYPE'));Where NODE_TYPE is your content type (machine name).
If the code above returns an error that says the function node_add() is undefined, add the following code before it.
if (!function_exists('node_add')) {
module_load_include('inc', 'node', 'node.pages');
}
Very helpfull
Very helpfull
Off course, now i see where i
Off course, now i see where i did the error! Thanks for posting!
I think the articles within
I think the articles within this site is really very helpful for people who want to learn about the Drupal CMS. thank you for your writings are very helpful to us
I liked from the beginning Drupal Teknologie very much
I liked from the beginning Drupal Teknologie very much. But there are still things that need to be developed. System needs to be improved. There are many weaknesses in comparison to other systems.
greaaaaaat thx
You are the best and this is the best tip I have seen on this subject, clear and simple but Incredible efficiency
works like a charm!
This is a great tip! I would have burned a lot of time trying to come up with a much less elegant solution.
Finally
this is what i've been looking for, thanks
Hey dude, thanks for posting
Hey dude, thanks for posting in a explained view. It works for me!!!
You're welcome mate :)
You're welcome mate :)
Add new comment