We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    i am trying to modify the prevNext snippet to work through the folders not the documents inside the folders.

    folder
    - doc with nextPrev
    - doc with nextPrev
    folder
    folder

    Heres the code to get the parent, but how do i get the folder above it i.e the parent parent?

    $parentid = $modx->documentObject[’parent’];

    i have looked into [[UltimateParent]] which looks great but what i need is to find the child of UltimateParent. any ideas?