Hello,
I'm trying to come up with a snippet for pagination of resources within a particular parent (in this case it is project pages for a theatre designer's website... like that's helpful to know..)
Requirements are that it not rely on any JS / Ajax. No others that I can think of, other than efficient.
I've got some test code working for incrementing pages:
// scroll way down this post to see the new version.
// this I have taken out for the sake of brevity,
// and so as not to be a bad influence on novic-er novices than me.
// seriously, if you copied any of that, start over - it shouldn't have been posted :(
I call the snippet-let by doing thusly:
... that was a waste of perfectly good 'code' tags, wasn't it?
you can see that the "next" link has a query string appended.
so needless to say this is just a messy test to see if I could use $_GET and get any results other than a crash
My question (what I would like some advice on) is whether this is at all a sensible way to go about it?
If it isn't a terrible idea, then I will def. clean it up, add <prev and echo the totals / current id, etc etc.
I foresee someone saying 'why not use getPage?' and the answer is that it needs to return several different page elements which each require different snippets.
thanks for any wisdom you can share,
-g
[ed. note: unsub777 last edited this post 11 years, 9 months ago.]