We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hello, it’s a little bit difficult for me to describe what I want to do, I’ll try anyway.

    I’m developping a new website with a 3-level-hierarchy. The first and second level documents are shown in the menu. Many of the 2nd-level documents have a number of children. Instead of giving a 3rd level menu, I want to provide "next" and "previous" buttons to browse through the 3rd level documents. E.g. like this:

    1) Products
    1.1) First Group
    1.2) Second Group
    1.2.1) First subpage
    1.2.2) second subpage
    1.2.3) third subpage

    Starting on page 1.2, i want to provide a button "next" wich would lead to page 1.2.1. Then, on pages 1.2.x I want to provide buttons "previous" and "next" to flip through the pages (without graphical flipping effects). The snippet should recognize by itself, whether there are children on a level-2-document and siblings on level 3 respectively. Then I can provide the snippet call in the template.

    Does anyone know of a snippet wich already can do this? Or should I code one myself and provide it in the repository when finished?

    Thanks for hints
    Martin