Hello @bargas28411 The link you posted is about sort/dir, not pagination..
Here's a tutorial, editor has changed but the logic is pretty the same: