Ok, so I've been getting on pretty well with the Panels module, and I've set up a flexible panel page to override nodes of a particular content type. The layout is along the lines of 2 rows, 2 columns (so 4 panels altogether), large image in top left, text body in top right, bottom left blank, comments in bottom right.
The trouble is, when I preview a comment, a copy of all the node content gets appended to the bottom of the comment_form, in the bottom right panel. I obviously don't want this since I've already laid out the node content as I need it, in the top row of panels. I guess I could hide the duplicated stuff with CSS in my theme but that's less than elegant. Any other ideas?
Some Techy Notes
Using the Form Inspect module, I've noticed that the page ends up with 2 different comment_form arrays, the 2nd of which contains the duplicate node HTML, in the #suffix key. I've tried unsuccessfully to get rid of it using theme_comment_form() in my theme's template.php.
I'm also guessing the problem is stemming from comment.module:
function comment_form_add_preview($form, $edit) {
...
$form['#suffix'] = $suffix . node_view(node_load($edit['nid']));
...
}Would I have to hack this core code to stop the behaviour?
Comments
I have exactly the same
I have exactly the same unwanted situation. It seems that the theme overrides simply do not work for comment preview, so I've just decided to hack it. I'm not sure there is any point submitting a patch because there really don't appear to be too many people wanting to override the comment preview theming.
If you've figured something out I'd be delighted to hear about it.
Dave
+1
I'm having the same behaviour here...
Need to fix this ASAP @:S
TIA!
Aleagi
Luiz Gustavo Aleagi Nunes `°º¤ø,¸¸,
http://aleagi.com | http://eopen.com.br
Desenvolvedor Drupal | Padrões W3C | Acessibilidade
¸,ø¤º°`°º¤ø,¸¸,ø¤º°` Nosce te ipsum...¸,ø¤º°``°º¤ø,¸¸,