I am trying to achieve the following effect:
Prev 1 of 4 Next
I have tried setting the following $config
option:
$config['num_links'] = 0;
But I get the following error:
Your number of links must be a positive number.
My config options are set as:
$config['base_url'] = "/browse/tag/$tid/";
$config['total_rows'] = $num_items;
$config['per_page'] = $max_items;
$config['first_link'] = FALSE;
$config['last_link'] = FALSE;
$config['uri_segment'] = 4;
$config['use_page_numbers'] = TRUE;
$config['display_pages'] = TRUE;
$config['num_links'] = 0; # this doesn't work
$config['prev_link'] = 'Previous';
$config['next_link'] = 'Next';
$config['cur_tag_open'] = '<span>';
$config['cur_tag_close'] = " of $pages</span>";
$config['full_tag_open'] = '<div class="previousnext">';
$config['full_tag_close'] = '</div>';
If I change num_links
to 1, I obviously get:
Prev 1 2 of 4 3 Next
And if I turn off display_pages
I get:
Prev Next
At this stage, I would like to avoid modding core code.