Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

prev/next navigation #39

@flokosiol

Description

@flokosiol

First of all THANKS for this great plugin!

Are there any know issues with prev/next navigations? I'm using the following code in my template …

<?php if ($page->hasPrevVisible()): ?>
    <a href="<?= $page->prevVisible()->url() ?>">Prev</a>
<?php endif; ?>

<?php if ($page->hasNextVisible()): ?>
    <a href="<?= $page->nextVisible()->url() ?>">Next</a>
<?php endif; ?>

… but it is ignored by the static build. I also tested $page->hasPrev() but this does not work either?! The prev/next navigation works great when the page is rendered dynamically.

I had a look at the issues here on Github, at the documentation and at this forum thread, but unfortunately without luck. Do you have any ideas? Or is there anything I've missed?

I'm using Kirby 2.5.10 and Static Builder 2.2.0.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions