News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with "..." in pagination

Started by Tiger78, October 06, 2016, 16:50:23 PM

Previous topic - Next topic

Tiger78

Hello there,

please have a look at the vm-pagination on my site (attached image).
Is the "..." correct? It doesn´t look nice.

I found the following code in pagination.php (line 119):


foreach ($list['pages'] as $k => $page)
{
if (in_array($k, range($range * $step - ($step + 1), $range * $step)))
{
if (($k % $step == 0 || $k == $range * $step - ($step + 1)) && $k != $currentPage && $k != $range * $step - $step)
{
$page['data'] = preg_replace('#(<a.*?>).*?(</a>)#', '$1...$2', $page['data']);
}
}


$step=5 (line 95 in pagination.php)


If I set $step=3, then the "..." appear all three steps. So I could set $step=100. This would solve my problem.

But isn´t there another way to fix it?


Thanks!