Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Pagination : show first and last page number when limiting numbers #3064

Closed
maitredede opened this issue Dec 8, 2014 · 4 comments
Closed

Comments

@maitredede
Copy link

Hi,

Is it possible to add an option to always have first page number and last page number ?

Like this :

[first][prev][1][...][5][6][7][...][42][next][last]

Replacing "first-text" with "1" and "last-text" with the page count makes pages number dupplication :

[1][1][2][3][...][42]

Thanks

@whayler1
Copy link

@maitredede I got the results you're looking for by doing as you outline above first-page="1" and last-page="{{page.count}}", then adding css to hide pagination items with a "disabled" class.

.pagination >li>a.disabled {display:none;}

@wesleycho
Copy link
Contributor

I do not believe we want to support this feature, as this adds complication. You are more than welcome to make changes via custom templates and CSS to accomplish your purpose though.

@matiishyn
Copy link

hm... need the same functionality. @maitredede have you implemented it?

@wesleycho wesleycho modified the milestones: 1.0.0, Purgatory Nov 2, 2015
wesleycho pushed a commit that referenced this issue Nov 2, 2015
- Adds force-ellipsis option for adding ellipses to pagination
- Add boundary-link-numbers option for allowance of the first and last page numbers to always be shown

Closes #2924
Closes #3064
Closes #3565
@bijaykush
Copy link

Hi,
Is it possible to show last and first 3 page numbers as shown below:

[1][1][2][3][...][40[41][42]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants