A little snipped which is among very much needed and asked on Drupal.org forums: "How to output comments in desired place on the page and not on the bottom?". Here is the answer:
if (function_exists('comment_render') && $node->comment) {
echo comment_render($node, $node->cid);
$node->comment = NULL;
}
Put it into node.tpl.php or node-type.tpl.php However, you can output it in page.tpl.php too and actually, in any file, just make sure, you're able to path correct $node to the snippet.
Posted in Web Development, February 11th, 2010
Tags: drupal
Post new comment