[support] Multiple comments form view and first node

Selvam S selvam at knackforge.com
Wed Jun 27 10:29:07 UTC 2012


Hi,

I am using Drupal 7.x. I have a view to list blogs and along with option to
post comment to each blog.

I use the code,

    $comment = new stdClass();
    $comment->nid = $nid;
    $form = drupal_get_form("comment_node_blog_form",  $comment);
    $content .= render($comment);

Everything works fine except that comments are always posted to the first
node in the list. Something similar to this issue,

http://drupal.org/node/541884

I would like to get your suggestions.

-- 
Regards,
Selvam
KnackForge Soft Solutions Pvt. Ltd.
Acquia Service Partner <http://knackforge.com/node/54>
No. 1, 12th Line, K.K. Road, Venkatapuram,
Opposite to M.B Jewellery,
Ambattur, Chennai,
Tamil Nadu, India - 600 053.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120627/dba72e94/attachment.html 


More information about the support mailing list