Hello, I would like to use related links which creates a block which can I place to Left, right, content, header, footer. This is not enough for me. I would like to have related links to article between my Node body and node comments.

How could I place some block there?

Thanks for any help!

Comments

chup’s picture

I have this problem too!
Any solution?

timatlee’s picture

Hum. Exactly the same problem here, and finding a very dead thread about the issue.

Anyone have any suggestions? It seems that $content (in page.tpl.php) contains the HTML for the comments already, so its like that bit needs to get moved out to its own block.. but thats getting messy..

jasom’s picture

same query for drupal 6 :)

Dave Sherohman’s picture

I've made some progress on doing this using D6, although it's not yet perfect.

First, using the information in Define block region inside node.tpl.php ?, I was able to create a new "Before Comments" region and get the Block Admin interface to recognize it.

The problem remained that nodes put the body content and the comments into a single HTML string without providing a way of inserting anything into the middle of it. The Comment Display module took care of that, with a minor modification to page.tpl.php so that it will print $content, $before_comments, and $comments rather than just $content.

This works well enough in many cases, but there are some flaws:

1) Comment Display checks whether there are any comments and builds the HTML for them at a point when it's not able to add .css and .js files to the page output. This broke threaded comment displays and a few other things. Adding the lines

  if (function_exists('comment_render') && $node->comment) {
    drupal_add_css(drupal_get_path('module', 'comment') .'/comment.css');
    drupal_add_js(drupal_get_path('module', 'comment') .'/comment.js');
    drupal_add_js('misc/collapse.js');
  }

to comment_display_node_show resolved these issues.

2) Even with all .css and .js in place, the collapsible sections in the node editing interface are still not working and I have not yet been able to resolve this issue. And, somehow, I have a feeling that, as soon as I do fix this, I'll stumble across something else it's broken...

But this does mostly work, in any case. If there's a better way to do it, though, I'm all ears.