opengeek/getPage — Issue #13: Feature: start & end placeholders
Author: bertoost
Created: 2012-02-03 08:05:04+00:00
State: open

For generating a text line like this: Results 1 till 4 from 10

I have added these codes to my snippet but this could be useful to have default with getPage?

$start = $offset + 1;
$end = $page * $limit;
if($end > $total) {
$end = $total;
}

$modx->setPlaceholder('start', $start);
$modx->setPlaceholder('end', $end);