Hmm, might be, but personally, I find it better if it were 3 instead of 5. Can you tell me btw how I can make that happen? I am looking at the code, but I can't see where it outputs 5 instead of another number?
I have been using these helpful posts to edit the range shown of the 'scrollable' pages, editing Core.php. I can see the changes happening but I'm not sure if there's a way to just show 2 pages between the < and >, rather than 3 in the example above. I've tried several combinations of numbers, successfully gotten it to show 2, but when I click the > arrow it just moves 1 page at a time, rather than 2.
So ideally it would be:
1 < 5 6 > 100
then after clicking the right scrollable arrow:
1 < 7 8 > 100
Right now it's currently doing this after clicking the arrow:
1 < 6 7 > 100
Here's my current code for this function. The only 2 things I've changed currently are the things commented "old setting" and "new setting"
I set the range to 0 because I want the current page to be the first one shown in the 'scrollable' section.
$currentPage = min(max($currentPage, 1), $pageTotal);
// number of pages either side of the current page
//$range = $options['displayRange']; // old setting
$range = 0; // new setting
//$scrollSize = 1 + 2 * $range; //old setting
$scrollSize = 2; // new setting
$scrollThreshold = $scrollSize + 2;
if ($pageTotal > $scrollThreshold)
$startPage = max(2, $currentPage - $range);
$endPage = min($pageTotal, $startPage + $scrollSize);
$extraPages = $scrollSize - ($endPage - $startPage);
if ($extraPages > 0)
$startPage -= $extraPages;