I'm building my first D7 site using fourseasons as the base theme. Fourseasons looks great but I have one nuisance that I can't solve. For all my content types except Article, the links are being placed as part of the content and not in $links.

This is causing things like Read More, Add new comment, and statistics to appear at the top of the node, right below the Submitted by.

I've combed through the fourseasons files and I'm not seeing anything that appears to be causing this but yet fourseasons is the only theme that is rendering them this way.

You can check out http://gaelic.flyballdogs.com to see what I'm talking about. Notice the first two items on the front page have the links above the body but the third and 4th have them below the body.

Any pointers on what is affecting this would be helpful.

CommentFileSizeAuthor
#1 node.tpl_.php_.txt1.03 KBbkat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bkat’s picture

FileSize
1.03 KB

Figured out what it was by comparing fourseasons/templates/node.tpl.php with the base modules/node.tpl.php

The main thing is that we need hide comments and links. I also changed some print statements to use render like the comments document in the base node.tpl.php

  <div class="content"<?php print $content_attributes; ?>>
     <?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['links']);
      print render($content); ?>
  </div>

   <?php print render($content['links']); ?>
   <?php print render($content['comments']); ?>

I'm attaching my current node.tpl.php file renamed to .txt to work around upload file extension constraints