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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pagerer-fix_views_plugin_pager_links_visible-1964306-4.patch | 484 bytes | mondrake |
Comments
Comment #1
mondrakeHi
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
Comment #2
rvdtuin commentedThanks 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
Comment #3
mondrakeAha!
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.
Comment #4
mondrakeVery simple patch.
Comment #5
mondrakeupdated issue title based on feedback in #2
Comment #6
mondrakeCommitted 1e974c7 and pushed to dev.