Hy, i made my first xpdo access, all runs fine. But i can not found any info how to make a page change under modx. Does anybody know how to make it? Hope you know what i mean. I have 200 Elements in Result and want to limit it to 20 Elements per Page, limit it is working but how to change it to next 20 Elements? Is there an xpdo or modx function for this?
You don’t say what you’re getting with this, but if it’s resources you might want to look at using getPage with getResources, which will handle both the retrieving and the pagination for you.
I get data from database over PDO in Snippet, all in one resource file. But i want to flip the database entrys from first 20 to next 20 and so on.
you can use getPage also together with your own snippet, which gets you custom-db-stuff
getPage handles the pagination (does create the page-links) and calls your snippet with parameters for limit and start.