I'm trying to display the comments on a node at the top of the page. I've edited node.tpl.php
in my theme to be:
<article id="article-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php print $unpublished; ?>
<?php print render($content['comments']); ?>
<?php print render($title_prefix); ?>
<?php if(!empty($user_picture) || $title || (!empty($submitted) && $display_submitted)): ?>
<header class="clearfix<?php $user_picture ? print ' with-picture' : ''; ?>">
<?php print $user_picture; ?>
<?php if ($title): ?>
<h1<?php print $title_attributes; ?>>
<?php if ($page): ?>
<?php print $title; ?>
<?php elseif (!$page): ?>
<a href="<?php print $node_url; ?>" rel="bookmark"><?php print $title; ?></a>
<?php endif; ?>
</h1>
<?php endif; ?>
<?php if ($display_submitted): ?>
<div class="submitted">
<?php
//By: Mike Ghen
//Date: 5/21/2012
//Description: This Modifies the submitted user and date info.
// Code from: http://drupal.org/node/1072640
if ($submitted) {
echo "Submitted on " . date( "F j, Y",$node->created);
}
?>
</div>
<?php endif; ?>
</header>
<?php endif; ?>
<?php print render($title_suffix); ?>
<div<?php print $content_attributes; ?>>
<?php
hide($content['comments']);
hide($content['links']);
print render($content);
?>
</div>
<?php if ($links = render($content['links'])): ?>
<?php endif; ?>
</article>
I moved <?php print render($content['comments']); ?>
to the top of the page but, it makes the form to fill out a comment appear at the top of the page as well. Is there a way to render the comments at the top and the comment form at the bottom?