Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have have comments shown on the node page with the comment form at the bottom of the page.
Comments have a pager.
When I submit a new comment it it shown below the pager.
Would it be possible to insert it above the pager?
Fantastic module, btw!!!
thanks
UWE
Comment | File | Size | Author |
---|---|---|---|
#4 | ajax_comments-below_pager-1548964-4.patch | 931 bytes | ttkaminski |
#2 | ajax_comments-below_pager-1548964-2.patch | 663 bytes | ttkaminski |
#1 | comments_posted_under_pager-1548964-1.patch | 1.22 KB | adammalone |
Comments
Comment #1
adammaloneNot the cleanest of patches as it does omit the invisible element output directly above the pager - however this one will allow the comment to appear above the pager.
At worst it should give people a starting point!
Comment #2
ttkaminski CreditAttribution: ttkaminski commentedTry this patch. It places it after the last ajax-comment-wrapper div.
Comment #3
mototribe CreditAttribution: mototribe commentedThanks! The #2 patch does place the comment above the pager.
However, if you add a comment on the first page of comments it now won't show up after posting the comment.
Comment #4
ttkaminski CreditAttribution: ttkaminski commentedThis patch checks if the comment count is zero, is so, then appends to the wrapper div.
Comment #5
adammaloneLooks good
Comment #6
muschpusch CreditAttribution: muschpusch commentedthanks! Committed to dev!