Hi All,
Is there a simple way to add a pagination page limit or total item count limit to a pagination?
It's for a recipe site (latest recipes) where I would like to limit the total item count to say 24 or 4 paginated pages of 6 items.
Code is as follows ($page->latest set to 6)
$items = $pages->find("template=recipe, limit=$page->latest, sort=-modified");
$pagination = $items->renderPager();
foreach ($items as $item) {
display recipe..etc...
}
I tried truncating the $items array but to no avail.
cheers,
Ivo