This is a example how to do an pagination in neos the old way. If you build a website from scratch then you should use AFX for it. Link to AFX Example
Don't copy the files into your Neos Project. Please go into every file and add/edit the required lines into your Neos Project. On some points you need to replace Your.Package
with the Package Identifier of your Project. I will add more explanations later.