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.
Problem/Motivation
If you add a feed (or various) and you go to aggregator/sources/ you will see a pagination but it doesn't works. You can see the problem at: http://sb1.adricida.training.forcontu.com/aggregator/sources/
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#16 | 2893914-16.patch | 2.26 KB | ranjith_kumar_k_u |
#14 | 2893914-14.patch | 2.28 KB | ranjith_kumar_k_u |
#5 | fix_aggregator_pager-2893914-5.patch | 2.24 KB | LOBsTerr |
#3 | fix_aggregator_pager-2893914-3.patch | 1.99 KB | LOBsTerr |
Comments
Comment #2
LOBsTerr CreditAttribution: LOBsTerr commentedI debugged the code for a while and found the problematic part. The value $pager_total for this view is overridden, because we also extract aggregator_item for each aggregator source in FeedViewBuilder.php (line 61)
loadByFeed calls eventually pager_default_initialize, which resets the value for $pager_total.
Unfortunately, I'm not so experienced to find a solution by myself. I'm asking for some advice or at least direction.
p.s. Honestly, I don't think we need aggregator items on this page.
Comment #3
LOBsTerr CreditAttribution: LOBsTerr commentedFinally, I have found the issue to distinguish the pagers of feed aggregator and feed items which belong to this feed aggregator. We need to assign unique element for the pager. For element of the pager I used aggregator_item, which can be considered as a unique one on the current page.
Comment #5
LOBsTerr CreditAttribution: LOBsTerr commentedComment #14
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedRe-rolled the last patch for 9.3
Comment #16
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedUpdated
Comment #17
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedComment #19
quietone CreditAttribution: quietone at PreviousNext commentedThe
aggregator
module has been removed from Core in10.0.x-dev
and now lives on as a contrib module. Issues in the Core queue about theaggregator
module, like this one, have been moved to the contrib module queue.Comment #20
larowlanThis needs some test coverage
Comment #21
larowlanComment #22
LOBsTerr CreditAttribution: LOBsTerr commentedI have checked and I can't reproduce the bug anymore. Let's close it
Comment #23
larowlanThanks for following up @LOBsTerr