Hi,
I'm trying to use the inbuilt blog module within drupal 7.x but I dont want the render($page['content']) to include the links to the author and comments parts of the page.

I've tried to hide this using the following (none of which have worked as of yet)
1. hide($content['links'])
2. hide($page['content']['system_main']['nodes'][$vid]['links']);

Any ideas on how to do this - all help gratefully appreciated - I know I should have stuck with Drupal 6 but for once I thought I'd try and get ahead of the curve and it's all going a bit pete tong
TY
M

Comments

kanani’s picture

if you look at the node.tpl.php file in the garland theme for drupal 7, there's a good example.

this is from line 18

  <div class="content clearfix"<?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>

  <div class="clearfix">
    <?php if (!empty($content['links'])): ?>
      <div class="links"><?php print render($content['links']); ?></div>
    <?php endif; ?>

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