Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Pagination: Max per Page / Pages Total


Reply


2 Posts   1393 Views

Avatar
MattKenefick

Community Member, 13 Posts

2 September 2008 at 8:33am

I read the tutorial for Pagination but I don't know if I overlooked or not.. but how do you tell the system what the max per page is?

And after that, is there a variable for # of pages ?

Avatar
Willr

Forum Moderator, 5513 Posts

2 September 2008 at 9:42am

Its set in the PHP method NewsArticles()

$limit = "{$SQL_start},2"

That line says from the start value (which changes depending on what page your on) then get 2 items. If you want more / less items you can edit that 2.