We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11190
    • 109 Posts
    Hello, all. I didn’t post this under PrevJumpNext in case it is better handled by another snippet. I have a site with some large documents (http://www.spiritualoutreach.org). I created the content as separate documents under one container. I used ditto to create a single page view and wayfinder to create both the top level table of contents and a fly-out table of contents in the margin of each subsection. Works great - thanks to the authors.

    I would like to create Prev and Next navigation buttons on the individual sections but, since the documents can be somewhat complex, they are arranged hierarchically rather than all in one container - basically in outline form, e.g., 1, 2, 3, 3.1, 3.1.1, 3.1.2, 3.2, 4. This creates a very navigable table of contents.

    I tried using the PrevNextJump snippet which worked great except that it does not navigate through the hierarchy. It only displays sibling documents and not children. Is there a way to have it navigate recursively? I would imagine it is a fairly simple change to the PHP but I know virtually nothing about PHP and so do not wish to attempt a hack. Thanks - John
      http://www.spiritualoutreach.com
      Making Christianity intelligible to secular society
      • 11190
      • 109 Posts
      I’ve had a look at the PrevJumpNext snippet code even though I don’t know a thing about PHP. It appears the critical function for me is the getActiveChildren() call. However, I could not find any documentation on the function to know if it has an option to gather all descendants instead of just children.

      Is there a way to modify the call to return all active descendants instead of just direct children? I noticed there was a reference to getActiveDescendants() but didn’t see anything on that either. Is there a way to use that function in this snippet. The web site in question is ready for release and this is my last major obstacle. Thanks - John
        http://www.spiritualoutreach.com
        Making Christianity intelligible to secular society