Hello,
I can't find of to add the nodecomment edit form in a template of a content type.
I can add the default comment edit form of drupal core:
print drupal_get_form('comment_form', array('nid' => arg(1)));
Any idea?
Thanks :)
Hello,
I can't find of to add the nodecomment edit form in a template of a content type.
I can add the default comment edit form of drupal core:
print drupal_get_form('comment_form', array('nid' => arg(1)));
Any idea?
Thanks :)
Comments
Comment #1
ykyuen commentedTry this
Comment #2
crea commentedYou are trying to use comment form from the Comment module. Ofcourse it doesn't work. Try to use the nodecomment form.
Comment #4
jthomasbailey commented#1 works:
But it outputs the comments & page title as well as the form. The unnecessary stuff can be hidden with CSS but that's not a very good way of doing it, is there a way of just printing the form? If not mark this as a feature request.
Comment #5
jthomasbailey commentedThe solution is simple:
Comment #6
crea commented