Add support for views_infinite_scroll in ViewsReferencePager to allow load more paging with ajax.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | views-infinite-scroll-pager-2950406-4.patch | 2.4 KB | miteshmap |
Add support for views_infinite_scroll in ViewsReferencePager to allow load more paging with ajax.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | views-infinite-scroll-pager-2950406-4.patch | 2.4 KB | miteshmap |
Comments
Comment #2
miteshmapComment #3
seanbCould you add a check if the module exists before adding the pager option?
Comment #4
miteshmap@seanB thanks for noticing that, added check for moduleExists.
Comment #5
k_a_l commentedI was looking for this exact support, so thank you! However, I tested a quick fix for this before checking the issue queue and after comparing it your patch, I was wondering what the reasoning was behind constructing the moduleHandler object vs using the global namespace? Is it not acceptable to do it this way (attached patch)? Thanks
Note, this applies to 8.x-2.x-dev
Comment #6
k_a_l commented#4 works with 8.x-1.2.
Comment #7
miteshmapThanks @Kyle for verifying that. Drupal coding standard prefer to use services as dependency injection. that's why used moduleHandler object instead of calling it as needed.
Comment #8
k_a_l commentedGood to know! Thanks.
Comment #9
nedimtrumic commented#5 :: Exactly what I needed, tested the patch and it works.
Comment #10
kwoxer commentedHey my friends. You should better use this one as it's more flexible for the feature. And it also allows to not overwrite the pager settings. So it's not strictly restricted to infinite scroll only.
So yeah better use this:
Comment #11
kwoxer commentedI marked this as fixed by the other patch that fixes this and some more issues on this.
Comment #13
falco010Can one of the maintainers re-open this issue as RTBC?
The other patch in https://www.drupal.org/project/viewsreference/issues/2932311 does not add the views_infinite_scroll option. So this patch should be committed separatly.