MODX EXTRA
UltimateParent
Creator: Shaun
McCormick (splittingred)
Updated By: sottwell
About UltimateParent
Return the "ultimate" parent of a document.
Information
Instructions
Copy the text of UltimateParent to a new snippet. Call the snippet with or without the optional arguments:
[[UltimateParent? &id=45
&top=6
]]
will return the ultimate parent of document 45, below document 6.
Updates
2006-09-17: Fixed bug where the getParent() query would try and use an Array (the entire result row from getParent) instead of the single id column value.New in UltimateParent 1.2-
There are no release notes for this version.