I am a beginner and I'm trying to learn my way around Statamic. I encountered a problem where I want to get the next and previous entry of the collection based on how it was grouped.

My approach in having the taxonomy as a header and the collection as subtopics is like this.

{{ taxonomy:categories }}
  <h2>{{ title }}</h2>
  <ul>
    {{ collection }}
      <li><a href="{{ url }}">{{ title }}</a></li>
    {{ /collection }}
  </ul>
{{ /taxonomy:categories }}

What I want in my page is:

Sidebar               |        Collection Entry Content
   Taxonomy           |     
       -Collection    |
       -Collection    |   
    Taxonomy          |
       -Collection    | <-Prev Entry                      Next Entry->

I managed to get everything working except the previous and next entry.