Setting a specific number of links to pages to display in the pager doesn't seem to do anything?
I can't find anything on this in the documentation / examples and issues.
Does anyone have a example of how setting the number of links effects the pager?

thanks

Comments

mondrake’s picture

Hi

I suppose you are referring to the 'Quantity' field in the administration UI when you are setting a preset's pane theme.

This differs by theme:

pagerer_standard and pagerer_scrollpane: this indicates the actual number of page links to be shown in the pager (provided there are enough pages).

pagerer_progressive and pagerer_adaptive: this indicates the number of page links to be shown as 'neighborhood' of the current page, inclusive of current (again provided there are enough pages). The 'outer links' are dependent on the total number of pages in the set, and are not restricted by the 'Quantity' field.

pagerer_slider: in this case, the Quantity is only used to approximate the width of the jQuery slider - in fact this is managed by the javascript code, which sets a width equal to Quantity*3 ems.

pagerer_mini: in this case, Quantity has no effect, as a single box is used to represent the current page.

Note: if you change the theme in a pane, I would recommend to click on the 'Reset' button to ensure that the theme configuration starts fresh with its own default setup - otherwise you may get to weird results.

Hope it helps

rvdtuin’s picture

Thanks for the quick answer.

Actually I meant: 'Number of pager links visible' field in the admin UI for Views / pager / settings.
should I post this question at project/views?

Thanks again

mondrake’s picture

Component: Documentation » Code
Category: support » bug

Aha!

Actually, no, you are right. Simply this option is overridden by Pagerer preset's values as specified in Pagerer admin UI, as described in #1. So, you should set what you want as 'Number of pager links visible' in the preset's pane 'Quantity' field, instead of entering in the views ui.

I did not notice this while developing the views pager plugin for Pagerer.

Most probably the best thing to do now, would be to hide this field from the views ui when using Pagerer as a pager for a view.

mondrake’s picture

Status: Active » Needs review
StatusFileSize
new484 bytes

Very simple patch.

mondrake’s picture

Title: "Number of pager links visible" » "Number of pager links visible" option in Views UI

updated issue title based on feedback in #2

mondrake’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed 1e974c7 and pushed to dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.