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 checked out this module, and found its highly used. I am willing to port this to Drupal 8.
Comment | File | Size | Author |
---|---|---|---|
#9 | paging8.zip | 4.08 KB | spdr |
Comments
Comment #2
NancyDruPlease do.
Comment #3
jenlamptonThat's fantastic! Please post your Drupal 8 port here when it's ready, and at that time I'll consider adding you as a maintainer too :) Thanks for your effort on this!
Comment #4
spdr CreditAttribution: spdr commentedSince no one ported this module and I need it badly on my site - D6 which has to migrate to D8 as soon as possible - I made a Drupal 8 version myself. I am now testing it. Seems to work fine for the moment, however I just implemented those options I needed:
- pagebreak with
- title list with
- selectable pager (prev/next) on top and/or bottom
- page title list at bottom
- comes with some basic css; non-responsive, but can be switched off if you want to implement own css
I can share it, however I do not have the time to implement more features and/or fix bugs if any. I do not want any credit.
Since this is some sort of quick fix, the code is some sort of messy. And for now, it is not optimized at all. And also you need to modify your.theme file if using any cache. Not mandatory but recommended to create a new filter type and enable the Paging8 filter for that type only, since I do not run any check whether the content is a page, block, etc. (Failing to do so may cause the filter run multiple times per page load which is unnecessary.)
If there is any interest, I will upload the module.
Comment #5
spdr CreditAttribution: spdr commentedComment #6
spdr CreditAttribution: spdr commentedComment #7
ajayg CreditAttribution: ajayg as a volunteer commented@spdr would love to see the code you have ported to D8
Comment #8
ajayg CreditAttribution: ajayg as a volunteer commentedAny update on this @spdr ?
Comment #9
spdr CreditAttribution: spdr commented@ajayg Sry, I have checked back regulary back then, but was no update/interest, so after a while I did not come back. I attached the filter. I am using it on my site (https:/geeks.hu), ie here:
https://geeks.hu/tesztek/171027_huawei_mate_10_pro_okostelefon_teszt_ez_...
It's not really a port though, I made it from scratch with the functions I needed.
Comment #10
spdr CreditAttribution: spdr commented@ajayg For caching to work properly, you will also need this in theme preprocess:
function theme_preprocess_node(&$variables) {
$variables['#cache']['contexts'][] = 'url.query_args:page';
}
Comment #11
eresanto CreditAttribution: eresanto commentedHello,
anyone knows about paging module alternative for Drupal 8?
I'm working on a js script that simulates paging by hiding and showing DOM elements, but it' a dirty and limited sollution.
I'd relly appreciate any possible help!
Comment #12
spdr CreditAttribution: spdr commented@erasanto
Hey, did you try the one i uploaded? For me it works great.
I'm not saying its perfect, but doest the job.
Best,
spdr
Comment #13
eresanto CreditAttribution: eresanto commented@spdr
No, but i'll give it a try :)
Comment #14
ajayg CreditAttribution: ajayg as a volunteer commented