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 used this module, as written in its description that it changes the pager of comment page. But when i applied this module it also change the pager of other block placed on comment page. I dont want to change the pager of all the type ie i just want to change the pager of comments not any other block or contents.
Comments
Comment #1
nicorac CreditAttribution: nicorac commentedIf you have more than one pager in a single page, please check that they don't have the same ID.
Since comments pager ID can't be set (and it's fixed to 0), you must change the pager ID of the pager contained in your block.
If the block is generated by a view, edit view Block display, look at Pager section of the Block View, then change the Pager ID field to 1, 2, ...
Please let me know if it works, otherwise give further details about your configuration
Comment #2
waqarit CreditAttribution: waqarit commentedthanks, it has solved the problem just changing Pager ID . But why this happened? this should not be conflict with other pager.
Comment #3
nicorac CreditAttribution: nicorac commentedIt won't interfere with other pagers as long as they have different IDs.
The page number a pager (and a paged content) is required to show is asked through the
?page=xxx
URL fragment.URL
/node/12?page=4
means "show node 12 and set 5th page on pager 0" where pager 0 is - usually - the first (or only one) pager of the rendered content.URL
/node/12?page=[4,1]
means "show node 12 and set 5th page on pager 0 and 2nd page on pager 1".As you can see the
page
argument can contain page numbers of multiple pagers, but they must have different IDs to be distinguished.This is a Drupal requirement.
I'll add this clarification to module description.
Comment #4
waqarit CreditAttribution: waqarit commentedthanks so much for clearing my concept. This is really informative and helpful. Keep it up