-
Notifications
You must be signed in to change notification settings - Fork 8
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
Previous / Next Article function won't work #31
Comments
Pagination logic is already there in the theme itself. You shouldn't have needed to make the changes you made. Can you please confirm if,
post:
navigation: true |
Hi ! My directory and file structure is :
Inside
and my
So where could be my mistake(s) ? |
I tested your setup with grav version |
For sure ! Tell me what you need in the zip file, and I'll attach it ! |
Based on your file structure, I would say a zip of |
I have the same problem, partially resolved with edit:next and prev work fine with: Grav 1.7.46 - Admin v1.10.46 thanks for your works and sorry for my bad english... |
Hi !
Thanks for the work on grav-coder, I really like the sobriety of your theme !
Don't know if this should be a PR or if it's an issue due to a misconfiguration or misunderstanding of how the theme is working....
I've been in trouble to make the previous / next Article function work. Related links were always corresponding to the current article URL. I'm using Grav v1.7.38.
I managed to get it work modifying the file
navigation.html.twig
in/grav-coder/templates/partials/item/
I replaced
page.prevSibling().slug (resp. nextSibling)
with
page.parent().children().prevSibling(page.path).url (resp. nextSibling)
and...tadam, it worked....
The text was updated successfully, but these errors were encountered: