Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2006 at 18:27 UTC
Updated:
9 Apr 2008 at 16:14 UTC
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
Comment #1
mr700 commented+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).
Comment #2
LAsan commentedOld topic with no feedback.
Moving to fixed.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.