I checked out this module, and found its highly used. I am willing to port this to Drupal 8.

CommentFileSizeAuthor
#9 paging8.zip4.08 KBspdr
#4 paging_3.PNG54.42 KBspdr
#4 paging_2.PNG67.01 KBspdr
#4 paging_1.PNG51.69 KBspdr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

surbz created an issue. See original summary.

NancyDru’s picture

Please do.

jenlampton’s picture

Issue summary: View changes

That'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!

spdr’s picture

FileSize
51.69 KB
67.01 KB
54.42 KB

Since 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.

spdr’s picture

spdr’s picture

ajayg’s picture

@spdr would love to see the code you have ported to D8

ajayg’s picture

Any update on this @spdr ?

spdr’s picture

FileSize
4.08 KB

@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.

spdr’s picture

@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';
}

eresanto’s picture

Hello,

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!

spdr’s picture

@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

eresanto’s picture

@spdr

No, but i'll give it a try :)

ajayg’s picture

Title: Drupal 8 Port » Drupal 8 Port for paging module