- ๐ซ๐ฎFinland anaconda777
Added patch #42 to Drupal 9.5.5 and the pagers are visible! Without patch, no pager was visible on a views page which has attachments also having pagers .
- ๐บ๐ธUnited States capysara
#42 Patch applies cleanly to 10.1.x.
Be sure that Render pager is enabled.With manual testing, it looks like the Attachment pager doesn't consistently work independently. It's the same behavior reported in #55 ๐ Allow views attachment display to use its own pager options Needs work , but I'm currently testing a view without ajax.
In a view without ajax, Full pager:
- Page - 2
- Attachment - Last
- Page - First
- Attachment gets reset back to 1
- Page (url is /myview?page=0) - Next
- Attachment - 3
- Page - 1
- Attachment gets reset back to 1
- Page - Last
- Attachment - 2
- Page - Previous
- Attachment gets reset back to 1
- Attachment - Last
- Page - Next
- Attachment gets reset back to 1
- Attachment - 2
- Page - 2
- Attachment gets reset back to 1
I have not applied a patch from 2858890 ๐ Drupal.views.ajaxView is not initializing pagers in nested views Needs work , but I'll try that next and update this comment.
- ๐ฆ๐บAustralia darvanen Sydney, Australia
This problem might be a bit wider-reaching than the scope of this module. I couldn't get a single pager to display anywhere on the page when giving a page and its attachment a pager each, whether the attachment inherited or not, with or without "render the pager" selected.
- ๐บ๐ธUnited States dmudie
Any chance of getting something like this in views so we don't have to hack core?
- ๐ฆ๐บAustralia darvanen Sydney, Australia
@dmudie yes there is! It takes effort from interested parties because this is free open-source software.
Currently the outstanding tasks are listed as tags on the issue:
Needs tests, Needs issue summary update, Needs steps to reproduce
It will also need to pass the core gates โ to be committed.
- ๐บ๐ธUnited States nicxvan
Tests no longer run against patches.
Please convert this to an mr.
- First commit to issue fork.
- Merge request !10127Issue #2833734 by Tะฐo, Daniel Kulbe, Mirroar, pvsureshmca, rensingh99: Allow... โ (Open) created by zaryab_drupal
- First commit to issue fork.
- ๐ฌ๐งUnited Kingdom oily Greater London
PHPSTAN errors are fixed.
That leaves test coverage, issue summary update and steps to reproduce (in Drupal 11.x).
- ๐ฌ๐งUnited Kingdom oily Greater London
Rebased andf fixed merge conflicts. Pipeline is all green.
- ๐ช๐ธSpain guiu.rocafort.ferrer Barcelona
guiu.rocafort.ferrer โ made their first commit to this issueโs fork.
- ๐ช๐ธSpain julio.raimondi Barcelona, Spain
โ Patch tested and verified on Drupal 10.4.7
This patch applies cleanly and resolves the issue where an attachment display in a View cannot render pager values when inheriting from the parent display.
๐ Steps to reproduce and test:
Created a View with a paged display (e.g., page display with a pager).
Added an attachment display that references the paged display.
Enabled the Render pager option in the attachment display.
๐ง Result:
With the patch applied, the attachment correctly renders pager values when configured to inherit and render them.
Without the patch, the attachment display does not show pager output, even if render pager is enabled.
๐งช No regressions observed. Views behavior remains stable, and the patch only touches Attachment.php.
๐ฆ Patch is based on an updated fork where the original patch was implemented but not applying cleanly. Reformatted to Drupal standards using a/ and b/ paths.
โ Marking as Needs Review โ patch applies cleanly, fixes the issue, and is safe to test.
- ๐ช๐ธSpain julio.raimondi Barcelona, Spain
#71 worked correctly for us https://www.drupal.org/project/drupal/issues/2833734#comment-15844466 ๐ Allow views attachment display to use its own pager options Needs work
- ๐ช๐ธSpain julio.raimondi Barcelona, Spain
Just a diff patch against --branch 10.4.x to address this and other warnings, prior to new release
- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
See comment #59 ๐ Allow views attachment display to use its own pager options Needs work , posted two years ago.