Doesn't work with comment forms in panels
gantenx - January 6, 2009 - 02:32
| Project: | AJAX Comments |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
AJAX Comments seems doesn't work with comment forms in a panel.
I have overriden node using Panels in my site. But, the comment form doesn't affected by AJAX Comments.
I figured out this problem might be come from the comment form id. By default, Drupal gives "comment-form" as comment form id, but comment forms in Panels have "panels-comment-form" id.
I hope this can be solved in your next release. Thanks

#1
Yes, I think you've described a correct reason. I'll see how it can be fixed.
#2
Subscribe
#3
Subscribe
#4
Any progress on this issue?
#5
Subscribe
#6
Subscribe
#7
Today I was digging into this issue. I must say that it's not a "change-id-and-everything-will-work" issue. They implemented a form like separate thing, and it require more work to link existing ahah functionality with this form. Another hard thing is that comments and form is not a part of same context in panel, I need to modify planty of selectors either so comment replies inserts in correct place.
#8
Subscribe
#9
I love this module, but i need panels and views. It would be great if these three worked together! When I create a view, the "create comment" and "reply" link don't work with ajax.
#10
same here
#11
I see this hack in ajax_comments.js: $('#panels-comment-form').attr('id', 'comment-form');
This may break theming styles.
#12
I stuck this in ajax_comments.js but it didn't work. Am I doing it wrong?
Ajax-comments to work with panels would be amazing. Anything I can do to help? (apart from coding unfortunately)
#13
I can offer no help in development but it would be a godsend if Ajax-comments worked with panels.
#14
Subscribe - Would be Great
#15
Hi,
I propably found a work around to use it with panels.
The view:
I created a view and within that i created a display of type "Content pane" with "Row style: Node" and the Argument "Node: Nid". I verified that the correct (single) node is displayed using the "Live preview".
The panel:
Then i created a variant for the systems default panel "Node template" and defined a selecion rule matching the desired node type (in my case story). First I played with the arguments input field and manually set a specific node id. When i viewed the node everthing worked fine together with ajax_comments.
Last step was to pass the node id dynamically as argument to the view. I have pathauto module activated. Somehow it worked by just activating the "Send arguments" checkbox within the settings of the pane.
I have to do some final tests but so far everthing seems to work fine.
Hope this helps.
Regards,
hasc
#16
Important note to add to previous comment is to use full node display, with it's comment thread and form, not the comments form pane given by Panels module.
#17
Hey
It works Well.
But is any possibilities to display only node comments display (excluding other node elements title, teaser/body) etc.
Is any row style available for the views?
#18
subscribe. I'm going to need that functionality (#17) for an upcoming project, will take a look at the code if nothing else comes up.