modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

getTree does not get all Container values #4973

Open mts7 opened 13 years ago

mts7 commented 13 years ago

mts7 created Redmine issue ID 4973

When using getTree (as referenced in http://rtfm.modx.com/display/revolution20/modX.getTree ), even with specifying a valid depth, not all containers are displayed in the tree. For instance, I have a page that has a parent line with 5 parents, though when I execute getTree with the first parent value, I only get children down to 3 more values. When testing the resource IDs closer to the original page, getTree works sometimes, and not others.

wshawn commented 13 years ago

wshawn submitted:

I would suggest two things for you:

Upgrade to 2.1 (even with its issues) as the code base has been cleaned up and deprecated code has been removed

Take a look at the Wayfinder Snippet, my Crumbz class on github and see how they handle the trees.

Just curious, on your specific application and why you are not using Snippets from the Repository....

Also look at getParents()

sean69 commented 11 years ago

sean69 submitted:

I'm experiencing the same issues in modx revo 2.2.4 has this been addressed or updated?