The D8 version was just added a few days ago. It took me a few minutes to figure it out so here are some basic directions since there isn't a readme.

The main difference is there is no cron run, rows are added to the index with hook_entity_update(), hook_entity_insert(), and hook_entity_delete(). This works for new nodes, but existing nodes need to be fired off manually.

  1. Install Module
  2. Edit settings under admin/config/system/prev-next
  3. Go to your content page and under bulk actions select 'Save Content" on all nodes that you want links for.
  4. Go to block settings and add the Prev/Next block
  5. Profit

Comments

devkinetic created an issue. See original summary.

naveenvalecha’s picture

Category: Plan » Task

It would be great to post the patch for the same.I'm tied off little bit and don't have much time for the patch.Please post the patch for the same.

devkinetic’s picture

Are you talking about implementing the cron feature?

naveenvalecha’s picture

Document about the working features in 8.x branch i.e. in the Readme.txt file

josephleon’s picture

Hey guys, I added a patch for a README.txt issue I created here (https://www.drupal.org/node/2836456#comment-11829801) and later found this issue, I added the steps above. Please let me know if you would like for me to close the other ticket as a duplicate and I can throw the README.txt patch here.

mlncn’s picture

Title: Add Drupal 8 instructions » Add Drupal 8 instructions to module page
Status: Active » Reviewed & tested by the community

The fixes to the README did go in #2836456: Missing README.txt !

Similar text should be added to the module page:

Creating new nodes will auto-index and generate the Prev and Next links.

For already-existing nodes, you will need to bulk save them. Go to your content page and under bulk actions select 'Save Content" on all nodes that you want to be indexed.

Creating #3226512: Restore re-index and cron capability (D8) to deal with the missing re-index and cron functionality that makes these different instructions necessary!

nicxvan’s picture

I would also say it would be helpful to mention you can call the service if you need the data programmatically:

\Drupal::service('prev_next.helper')->getPrevnextId($nid, 'next');

jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

Added #6 to the module page.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.