This is an auto-generated support/comment thread for GetChunkByUPID
Use this forum to post any comments about this addition or any questions you have regarding its use.
GetChunkByUPID - MODx snippet (Get Chunk by UltimateParent ID)
this snippet recursively searches the document tree and determines the "ultimate" parent (the one whose parent is 0) of the given document, then ads that ID to a chunk name. it will then give you a chunk call corresponding to the id.