1

I am using drupal 8.5 and have tried everything people say to get pagination working, but it does not over rest api. I have 2 news articles, and I set the page value to 1 per page. I have tried passing in page as a get parameter but still always returns the first news article.

Items per page set to 1

No matter what value I change page to, it is always first 1

1 Answer 1

2

Ensure that you have the Full Pager enabled on the View. This will enable paging. Right now you’re only telling the view to show one thing.

2
  • Thank you! You would be amazed how hard it was to track down this answer. Commented Jul 24, 2018 at 13:56
  • Is there a way to dynamically change the items per page number? Commented Jul 24, 2018 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.