Skip to main content

r:page:previous_sibling

In CleanSlate, it is possible to access the previous and next pages relevant to the current page, based on page ordering, with the <r:page:previous_sibling> and <r:page:next_sibling> tags.

For example, you could create a pager to navigate through a set of sibling pages as follows:

<ul class="pager">
  <r:page:previous_sibling>
    <li class="previous"><a href="<r:page:url />">&larr; <r:page:name /></a></li>
  </r:page:previous_sibling>

  <r:page:next_sibling>
    <li class="next"><a href="<r:page:url />"><r:page:name /> &rarr;</a></li>
  </r:page:next_sibling>
</ul>

page.previous_sibling and page.next_sibling

In CleanSlate, it is possible to access the previous and next pages relevant to the current page, based on page ordering, with the page.previous_sibling and page.next_sibling tags.

For example, you could create a pager to navigate through a set of sibling pages as follows:

<ul class="pager">
  <li class="previous"><a href="{{ page.previous_sibling.url }}">&larr; {{ page.previous_sibling.name }}</a></li>
  <li class="next"><a href="{{ page.next_sibling.url }}">{{ page.next_sibling.name }} &rarr;</a></li>
</ul>

Last updated on March 16, 2021.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.