# Next/Previous section based on weight

**URL:** <https://zola.discourse.group/t/next-previous-section-based-on-weight/528>\
**Category:** Support\
**Created:** [August 1, 2020, 8:26pm UTC](https://zola.discourse.group/t/next-previous-section-based-on-weight/528 "2020-08-01T20:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eikek](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eikek](https://zola.discourse.group/u/eikek)\
**Post date:** [August 1, 2020, 8:26pm UTC](https://zola.discourse.group/t/next-previous-section-based-on-weight/528/1 "2020-08-01T20:26:55Z")

</div>

Hi,

I have multiple sections that are sorted by their weight. This works great and I can generate an overview in the parent section. I’d like now to add links to the previous/next section on each section content, or on a page of a section.

I noticed that there are `heavier`/`lighter` variables available in a page, but not in a section. Since I can sort sections by weight, it is confusing to me that these variables are missing in the section template? I thought I could maybe use `get_section` and then get somehow to the next/previous one in a page template and get directly to it in a section template.

Is there a way to generate these links?

PS: I’m new to zola (0.11.0), and I really like it! Thank you for creating it! I’m sorry if this (and the other one I created so far) is a dumb question.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [August 3, 2020, 10:48am UTC](https://zola.discourse.group/t/next-previous-section-based-on-weight/528/2 "2020-08-03T10:48:11Z")

</div>

It looks like an oversight, `lighter/heavier` should be added to sections as well

---

<div class="post-metadata">

**Author:** ![eikek](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eikek](https://zola.discourse.group/u/eikek)\
**Post date:** [August 7, 2020, 5:42pm UTC](https://zola.discourse.group/t/next-previous-section-based-on-weight/528/3 "2020-08-07T17:42:30Z")

</div>

Thank you for your response. I’ll take a look into a later release 🙂 Thanks.
