We’ve a site built in Django-CMS and have developed a mobile version with alternative CSS to suit the smaller viewing area. As well as the usual navigation bar we want to include Next and Previous page links at the bottom of each page.
I know how to output the current page’s siblings using this code:
{% show_menu current_page.level %}
What is the easiest way to output links to the next and previous page?
You can use
{{ request.current_page.get_next_sibling }}and{{ request.current_page.get_previous_sibling }}in your templates to show the ‘neighbor’ pages (not that either or b