Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update include.getpage.php #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update include.getpage.php #22

wants to merge 1 commit into from

Conversation

ilyautkin
Copy link

Change the algoritm of shows links to any page in [[+page.nav]]

Change the algoritm of shows links to any page in [[+page.nav]]
@opengeek
Copy link
Owner

@ilyautkin Can you explain what this change does? I'm not following from the code changes or description.

@ilyautkin
Copy link
Author

Now getPage genering such pagination:
27272c366e10cd91d36ee45528e5db18dfd39990
And change makes pagination such:
5393f123477df4626418ce99ae046d81d6ab154f

@sylbal
Copy link

sylbal commented Mar 20, 2017

Hi,

+1 for this, I believe I have the same "issue". From my observations, when you're in the middle of the navigation, the number of page displayed is 'pageLimit' *2 + the active page. The default setup (5) will display up to 11 pages between the first/prev/nex/last links.

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

Successfully merging this pull request may close these issues.

3 participants