I'd like to place all the comments in a collapsable div, but there is no way to do this other than to modify comments.php:comment_render and add:

  $form['commentwrap'] = array('#type' => 'fieldset', '#title' => t('Comments'),
                                 '#collapsible' => TRUE, '#collapsed' => TRUE);
  $form['commentwrap']['comments'] = array('#type' => 'markup', '#value' => $output);
  return drupal_get_form('commentwrap', $form);

It'd be nice if either here or in node.php:node_body which calls comment_render, there'd be a place for someone to use the theme engine to change the look and feel of comments as a whole, rather than individual comments.

Comments

mr700’s picture

+1 from me, there must be a way to theme the comments. I had to patch comment.module in 4.6 and give the div that surrounds all comments a class to be able to apply css style (max width) on it (www.sport1.bg).

LAsan’s picture

Version: x.y.z » 7.x-dev
Status: Active » Fixed

Old topic with no feedback.

Moving to fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.