Get pages:next and pages:previous from current URL

Follow-up from:

I have a content tree that looks like this for a documentation site:


If I'm on the "semantics" page I'd like to follow the content with a next/previous link to styleguide/conventions. I can hardcode folder attribute of the pages:next tag like this:

{{ pages:next folder="html" }}
    {{ if !no_results }}
        Next up: <a href="{{ url }}">{{ title }}</a>
    {{ endif }}
{{ /pages:next }}

But obviously it can't be hardcoded. The documentation suggests there's a "current" parameter but I can't find an example or way to use it, and there's no global tag to get the parent URL.


>>>>>>> Unanswered <<<<<<<
3 Replies
1 Follower