UltimateParent

Creator: Shaun McCormick (splittingred)
Updated by: Susan Ottwell (sottwell)

Need help installing this extra?

About UltimateParent

Travels up the document tree to return the "ultimate" parent of a document. An optional argument in the snippet call can specify a document ID to act as the top of the tree if you don't want to go all the way up to the root. Another argument can specify the document whose parent you want, if this argument is not used the current document's id will be used.

Information

Released
July 2, 2006

Supported Database
MySQL

License
Public Domain

Supported Versions
2.0 - Current

Downloads
43,395

Instructions

Copy the text of UltimateParent to a new snippet. Call the snippet with or without the optional arguments:[[GetUltimateParent?id=45&top=6]]will return the ultimate parent of document 45, below document 6.

Current releases

2.0.0-pl
View | Download
October 6, 2010
2.0 - Current

1.3.0
View | Download
May 19, 2007
2.0 - Current

1.2.0
View | Download
September 17, 2006
2.0 - Current

1.1.0
View | Download
July 2, 2006
2.0 - Current