# Best practice to manage and archive events

**URL:** <https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 20, 2019, 9:29pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295 "2019-01-20T21:29:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandorrrrrra](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@pandorrrrrra](https://forum.getkirby.com/u/pandorrrrrra)\
**Post date:** [January 20, 2019, 9:29pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295/1 "2019-01-20T21:29:46Z")

</div>

I had a look at some examples here and tried different things but can’t really figure it out exactly:

I have a page “events” where I create all events as subpages, so I don’t need to move them around if they are in the future or past. Then I have the pages “Soon”, “Now”, “Archive”, where I display the links to the corresponding events, achieved with filterBy() and sortBy(). This works fine so far.

But now I need to navigate in those categories “Soon”, “Now”, “Archive” with “Previous” and “Next”. How can I get to that ? The nicest would be to get an url like for example “/soon/event1” and I can navigate through the “Soon” events only. If the url has to change in the end for that its not a problem.

How can I get the events in the category pages ? Now when I click on them it goes to “/events/event1”.

And is this the way for the prev next still for K3 ?  
[Next Previous link with filter](https://forum.getkirby.com/t/next-previous-link-with-filter/11178/2)

Thanks a lot for your help in advance !

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 20, 2019, 11:19pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295/2 "2019-01-20T23:19:58Z")

</div>

My custom methods would work if your pages were filtered in the main events page. But since you are using different subpages, they alone won’t quite help.

What you need for your prev-next to work is a combination of the custom-methods with maybe a page model or a manual URL-part that takes care of loading the right category page.

The custom getPrev/getNext methods for Kirby 3 are here: [https://github.com/texnixe/k3-pagemethods/blob/master/index.php](https://github.com/texnixe/k3-pagemethods/blob/master/index.php)

---

<div class="post-metadata">

**Author:** ![pandorrrrrra](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@pandorrrrrra](https://forum.getkirby.com/u/pandorrrrrra)\
**Post date:** [January 21, 2019, 11:13pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295/3 "2019-01-21T23:13:03Z")

</div>

Thanks a lot, the page-methods work pefectly ! This is great.

> [@texnixe](#):
>
> What you need for your prev-next to work is a combination of the custom-methods with maybe a page model or a manual URL-part that takes care of loading the right category page.

Here I couldn’t figure out how to do it to get an url like “/soon/event1”. I would have the “Previous” and “Next” on the event page itself (“/soon/event1” and so on). Would that be possible ?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 21, 2019, 11:15pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295/4 "2019-01-21T23:15:04Z")

</div>

Not quite sure I get it all. Could you post your code or DM me .zip so I can see it in action?

---

<div class="post-metadata">

**Author:** ![pandorrrrrra](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@pandorrrrrra](https://forum.getkirby.com/u/pandorrrrrra)\
**Post date:** [January 26, 2019, 11:56pm UTC](https://forum.getkirby.com/t/best-practice-to-manage-and-archive-events/12295/5 "2019-01-26T23:56:52Z")

</div>

Thanks for the offer, I managed to find a solution just with the prev-next.  
Thanks a lot for the help !
