We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I am trying to rebuild MenuDealer so it works completely up and down the document tree. I need to get all id numbers below some id not just the first level but all the way to the end of all branches.

    Now MenuDealer only goes one level deep from Ultimateparent or the node (id to stop) if the id needed is not found in the first level then it stops and returns noting.

    I looked into the API but I do not see a thing like this.

    Dimmy
      follow me on twitter: @dimmy01
      • 22303 MODX Staff
      • 10,725 Posts
      getChildIds() and getParentIds() does exactly what you are looking for and does not make even a single database connection to do it.
        • 7455
        • 2,204 Posts
        Nice thank you, will moddify and post the new version soon
          follow me on twitter: @dimmy01