Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I am using the node_view template of panels and inserted the comment form and comment panes. When replying on a comment, everything behaves as expected. But when creating a new comment, the just created comment isn't being displayed. How could I fix this?
Comment | File | Size | Author |
---|---|---|---|
#7 | panels_incompatability-2016801-7.patch | 554 bytes | dagomar |
Comments
Comment #1
muschpusch CreditAttribution: muschpusch commentedNot sure if it's related but could you update to latest dev? Since this issue got committed it could work: #1511726: Multiple Panels comments append to top of page, not pane
Comment #2
Lukas von BlarerI am on the latest dev.
Comment #3
muschpusch CreditAttribution: muschpusch commentedi will have a look! Thanks for reporting!
Comment #4
tjhart87 CreditAttribution: tjhart87 commentedI can also confirm there is an issue when using the separate form and and comment feed with panels. In order to see the comments the page has to be refreshed. The ajax submit isn't refreshing the separate panel node comments.
Comment #5
tjhart87 CreditAttribution: tjhart87 commentedI also noticed today that if a user selects selects to reply, then cancels, and then selects reply again the form doesn't reload.
Comment #6
grahamCFor what it's worth, I've got similar problems trying to use AJAX comments along with Colorbox Node.
When a node is displayed in the Colorbox popup, it uses a different (custom) display other than "full". As comments are only automatically attached to the "full" display, the comments are added by calling
comment_node_page_additions()
manually, then unfortunately clobbering thediv#comment-wrapper
prefix/suffix instructions which AJAX comments needs.This resulted in comments that didn't appear once submitted, which sounds a lot like the situation in here. For now, I've overridden my comment-wrapper.tpl.php to hardcode the #comment-wrapper element.
Ideally you'd want to hook into the comment module and add the wrapper there rather than using node hooks, but comment currently lacks any extensibility options that I can make out!
Comment #7
dagomar CreditAttribution: dagomar commentedI created a patch for this, see attachment and please verify! I just altered the output of the wrapper so it corresponds with that of the wrapper output of the node. They where not the same. This seems to work for me, note that this does not fix the issue with 'reply-cancel-reply', which I believe is unrelated.
Comment #8
muschpusch CreditAttribution: muschpusch commentedlooks good!
Comment #9
muschpusch CreditAttribution: muschpusch commentedcommitted to current dev